'use client' import Link from 'next/link' export default function NavLink({ href, children, }: { href: string children: React.ReactNode }) { return ( { ;(e.currentTarget as HTMLElement).style.backgroundColor = 'var(--surface)' ;(e.currentTarget as HTMLElement).style.color = 'var(--text-primary)' }} onMouseLeave={(e) => { ;(e.currentTarget as HTMLElement).style.backgroundColor = 'transparent' ;(e.currentTarget as HTMLElement).style.color = 'var(--text-secondary)' }} > {children} ) }