import Link from 'next/link' import { useRouter } from 'next/router' import { ReactNode } from 'react' import classNames from 'classnames' interface Props { href: string children: string | ReactNode } const NavLink = ({ href, children }: Props) => { const router = useRouter() const isActive = router.pathname === href return ( {children} ) } export default NavLink