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