import {Fragment} from 'react' import {usePathname} from 'next/navigation' import {Popover, Transition} from '@headlessui/react' import clsx from 'clsx' import Link from 'next/link' import {ChevronDownIcon} from '@/components/icons/ChevronDownIcon' import {CloseIcon} from '@/components/icons/CloseIcon' import {Props} from '@/types' function MobileNavItem({href, children}: { href: string } & Props) { return (
  • {children}
  • ) } export function MobileNavigation(props: Props) { return ( Menu

    Navigation

    ) } function NavItem({href, children}: { href: string } & Props) { let isActive = usePathname() === href return (
  • {children} {isActive && ( )}
  • ) } export function DesktopNavigation(props: Props) { return ( ) }