import { NavLink, useLocation } from 'react-router'; import { clsx } from 'clsx'; import { Flame } from 'lucide-react'; import { ToolCtrlLogo } from '../ui/ToolCtrlLogo'; import { TimerPill } from '../time/TimerPill'; import { voice } from '../../lib/voice'; import { useCurrentUser } from '../../hooks/useCurrentUser'; const TABS = [ { to: '/dashboard', label: 'Dashboard', shortcut: 'g d', matchPrefix: '/dashboard' }, { to: '/bereich', label: 'Bereich', shortcut: 'g b', matchPrefix: '/bereich' }, { to: '/heute', label: 'Heute', shortcut: 'g h', matchPrefix: '/heute' }, { to: '/team', label: 'Team', shortcut: 'g t', matchPrefix: '/team' }, { to: '/historie', label: 'Historie', shortcut: 'g i', matchPrefix: '/historie' }, { to: '/archiv', label: 'Archiv', shortcut: 'g a', matchPrefix: '/archiv' }, ] as const; function getInitials(name: string): string { return name .split(/\s+/) .filter(Boolean) .slice(0, 2) .map((p) => p[0]?.toUpperCase() ?? '') .join(''); } export function TopNav() { const me = useCurrentUser(); const location = useLocation(); return (
); }