import { useRouter } from 'next/router';
import { Vega } from '../icons/vega';
import Link from 'next/link';
import { AnchorButton } from '@vegaprotocol/ui-toolkit';
export const Navbar = () => {
return (
);
};
interface NavLinkProps {
name: string;
path: string;
exact?: boolean;
}
const NavLink = ({ name, path, exact }: NavLinkProps) => {
const router = useRouter();
const isActive =
router.asPath === path || (!exact && router.asPath.startsWith(path));
return (
{
e.preventDefault();
router.push(path);
}}
>
{name}
);
};