import Link from 'next/link' import { useRouter } from 'next/router' export const NormalMenu = props => { const { link } = props const router = useRouter() if (!link || !link.show) { return null } const selected = (router.pathname === link.to) || (router.asPath === link.to) return