'use client' import { cn } from '@/lib/utils' import { Popover, Transition } from '@headlessui/react' import { HeartIcon } from 'lucide-react' import { Fragment } from 'react' import { Container } from './Container' import { NavLink } from './NavLink' import { trackGAEvent } from './analitycs' import { Logo } from './shared/Logo' import { Button, buttonVariants } from './ui/button' import { useTranslations } from 'next-intl' import { Link } from '@/i18n/routing' function MobileNavLink({ href, children, target, }: { href: string children: React.ReactNode target?: string }) { return ( { trackGAEvent({ action: 'Nav Link Clicked', category: 'Navigation', label: href, }) }} as={Link} href={href} target={target} className="block w-full p-2" > {children} ) } function MobileNavIcon({ open }: { open: boolean }) { return ( ) } function MobileNavigation() { const t = useTranslations('HomePage') const linkT = useTranslations('Link') return ( {({ open }) => } {t('navigation.features')} {/* Testimonials */} {t('navigation.faqs')} {t('navigation.docs')} ) } export function Header() { const t = useTranslations('HomePage') const linkT = useTranslations('Link') return ( {t('navigation.features')} {/* Testimonials */} {t('navigation.faqs')} {t('navigation.docs')} {t('navigation.support')}{' '} {/* @ts-expect-error */} {t('navigation.discord')} ) }