portfolio/components/ui/MobileNavItem.tsx

13 lines
357 B
TypeScript
Raw Normal View History

2023-02-14 21:34:07 +00:00
import {Props} from '@/types';
import {Popover} from '@headlessui/react'
import Link from 'next/link'
export function MobileNavItem({href, children}: { href: string } & Props) {
return (
<li>
<Popover.Button as={Link} href={href} className="block py-2">
{children}
</Popover.Button>
</li>
)
}