'use client' import { ArrowUpRight } from 'lucide-react' import Link from 'next/link' import { ReactNode } from 'react' export type NavItemProps = { href: string children: ReactNode external?: boolean target?: string rel?: string title?: string icon?: ReactNode } const commonStyling = 'list-none flex no-underline items-center gap-2 whitespace-nowrap cursor-pointer' export default function NavItem({ href, children, external = false, target, rel, title, icon }: NavItemProps) { const linkProps = { href, target, rel, title } return ( <>