import { NavLink } from 'react-router-dom' import Icon, { type IconName } from '@/components/ui/Icon' import { useT } from '@/i18n/useT' interface NavItem { to: string icon: IconName labelKey: string hintKey?: string end?: boolean } export const NAV_ITEMS: readonly NavItem[] = [ { to: '/app', icon: 'dashboard', labelKey: 'shell.nav.dashboard', end: true }, { to: '/app/account', icon: 'user', labelKey: 'shell.nav.account' }, { to: '/', icon: 'tool', labelKey: 'shell.nav.local_tool', hintKey: 'shell.nav.local_tool_hint', }, ] function linkClass(active: boolean): string { return [ 'relative flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm transition-colors min-h-11', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]', active ? 'bg-[var(--color-surface-strong)] text-[var(--color-ink)] font-medium before:absolute before:left-0 before:top-2 before:bottom-2 before:w-0.5 before:rounded-full before:bg-[var(--color-accent)]' : 'text-[var(--color-ink-muted)] hover:bg-[var(--color-surface-strong)] hover:text-[var(--color-ink)]', ].join(' ') } /** The three destinations of the shell; `onNavigate` closes the mobile drawer. */ export default function SidebarNav({ onNavigate }: { onNavigate?: () => void }) { const t = useT() return ( ) }