'use client' import React, {Fragment, ReactNode} 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) { const pathname = usePathname() let isActive = pathname === href return (
  • {children} {isActive && ( )}
  • ) } export function DesktopNavigation(props: Props) { return ( ) } export function NavLink({href, children}: { href: string, children: ReactNode }) { return ( {children} ) }