import { Link } from '@tanstack/react-router' import { useTranslation } from 'react-i18next' import { Logo } from '../brand' import { Breadcrumb } from './Breadcrumb' import { ThemeToggle } from './ThemeToggle' import { UserMenu } from './UserMenu' export function Header() { const { t } = useTranslation('layout') return (
{/* `Link` and not ``: on mobile the logo is the only way back to the home screen and an anchor would reload the whole document, losing the in-memory state (React Query cache, install event). */}
{/* On mobile the theme lives only in Ajustes → Apariencia: in the header it took the space next to the avatar for something you change once. On desktop there is room for the shortcut. */}
) }