import { useRouterState } from '@tanstack/react-router' import { SearchIcon } from 'lucide-react' import { ThemeToggle } from '@/components/theme-toggle' import { Separator } from '@/components/ui/separator' import { SidebarTrigger } from '@/components/ui/sidebar' function titleFor(pathname: string) { if (pathname === '/') return 'Panel' if (pathname.startsWith('/lists')) return 'Listas' if (pathname.startsWith('/settings')) return 'Ajustes' return 'Superlist' } export function AppHeader() { const pathname = useRouterState({ select: (state) => state.location.pathname }) const title = titleFor(pathname) return (

{title}

) }