import SmartLink from '@/components/SmartLink' 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.href || router.asPath === link.href return (
{link.name}
{link.slot}
) }