import Link from 'next/link' import { useRouter } from 'next/router' import classNames from 'classnames' type NavigationLinkComponent = React.FC<{ path: string }> export const NavigationLink: NavigationLinkComponent = props => { const { pathname } = useRouter() const isCurrentPage = pathname === props.path return ( <>
  • {props.children}
  • ) }