import React, { FC } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import styled from "styled-components"; import Router from "next/router"; import HeaderMenuItem from "./HeaderMenuItem"; const List = styled.ul` display: flex; align-items: flex-end; list-style: none; margin: 0 0 3px; padding: 0; @media only screen and (max-width: 488px) { display: none; } `; const HeaderLeftMenu: FC = () => { const goTo = e => { e.preventDefault(); const path = e.currentTarget.getAttribute("href"); if (!path || window.location.pathname === path) return; Router.push(path); }; return ( GitHub Report ); }; export default HeaderLeftMenu;