{"size": 390, "ext": "js", "max_stars_repo_path": "src/Header.js", "max_stars_repo_name": "NitinNair89/Codechef_Cards", "max_stars_repo_stars_event_min_datetime": "2021-10-09T17:39:40.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-21T05:34:24.000Z", "max_issues_repo_path": "src/Header.js", "max_issues_repo_name": "NitinNair89/Codechef_Cards", "max_issues_repo_issues_event_min_datetime": "2021-10-08T11:55:00.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-04T06:59:15.000Z", "max_forks_repo_path": "src/Header.js", "max_forks_repo_name": "NitinNair89/Codechef_Cards", "max_forks_repo_forks_event_min_datetime": "2021-10-08T10:26:07.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-31T05:35:40.000Z"}
{"max_stars_count": 7, "max_issues_count": 29, "max_forks_count": 7, "avg_line_length": 20.5263157895, "max_line_length": 78, "alphanum_fraction": 0.6487179487}
import React from "react";
import { FaGithub } from "react-icons/fa";

export default function Header() {
	const gotoGithub = () => {
		window.location.href = "https://github.com/yashchaudhari008/Codechef_Cards";
	};
	return (
		<header>
			<div>Codechef Cards</div>
			<FaGithub
				className="githubIcon"
				onClick={gotoGithub}
				style={{ cursor: "pointer" }}
			/>
		</header>
	);
}
