import { FC } from 'react' import { Link } from '../link' type NavItemProps = { href?: string name?: string className?: string as?: string route?: string } export const NavItem: FC = ({ href, name, className = '', as, route, }) => { const home = `/${href}` === route // display home route return ( {home ? 'Home' : name} ) }