mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-23 07:15:41 +00:00
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
|
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>
|
||
|
)
|
||
|
}
|