import { Link, useLocation } from '@tanstack/react-router' import { ChevronRight } from 'lucide-react' type Crumb = { label: string; to?: string } const BREADCRUMBS: Record = { '/': [{ label: 'Inicio' }], '/groups': [ { label: 'Inicio', to: '/' }, { label: 'Grupos' }, ], '/payments': [ { label: 'Inicio', to: '/' }, { label: 'Cobros' }, ], '/settings': [ { label: 'Inicio', to: '/' }, { label: 'Ajustes' }, ], '/security': [ { label: 'Inicio', to: '/' }, { label: 'Ajustes', to: '/settings' }, { label: 'Seguridad' }, ], '/profile': [ { label: 'Inicio', to: '/' }, { label: 'Mi perfil' }, ], } export function Breadcrumb() { const location = useLocation() const crumbs = BREADCRUMBS[location.pathname] ?? [{ label: 'Inicio' }] return ( ) }