'use client' import { cn } from '@/utils/cn' import Link from 'next/link' import { usePathname } from 'next/navigation' import { ExternalLink } from '../ui/ExternalLink' import { navItems } from './navItems' export function NavLinks() { const pathname = usePathname() const isActive = (href: string) => { if (href === '/') { return pathname === href } return pathname?.startsWith(href) } return navItems.map((item) => (