import Link from "next/link";
type NavLinkProps = {
  href: string;
  children: React.ReactNode;
};

const NavLink = ({ children, href }: NavLinkProps) => {
  return (
    <Link href={href} shallow>
      <a>{children}</a>
    </Link>
  );
};

export default NavLink;
