import { useRouter } from 'next/router'; import classNames from 'classnames'; import { Vega } from '../icons/vega'; import Link from 'next/link'; export const Navbar = () => { const navClasses = classNames( 'flex items-center', 'border-neutral-200 border-b' ); return ( ); }; interface NavLinkProps { name: string; path: string; } const NavLink = ({ name, path }: NavLinkProps) => { const router = useRouter(); const className = classNames('inline-block', 'p-8', { // Handle direct math and child page matches 'text-vega-pink': router.asPath === path || router.asPath.startsWith(path), }); return ( { e.preventDefault(); router.push(path); }} > {name} ); };