import { Link, Outlet } from '@tanstack/react-router' const navLinks = [ { to: '/gardens', label: 'Gardens' }, { to: '/plants', label: 'Plants' }, ] as const // TanStack Router concatenates the base className with activeProps/inactiveProps, // so state-specific and conflicting utilities (text-muted vs text-fg) live in the // state props — never in the base — to avoid ambiguous overrides. const navLinkBase = 'rounded-md px-3 py-1.5 text-sm font-medium transition-colors' const navLinkActive = 'bg-border/60 text-fg' const navLinkInactive = 'text-muted hover:bg-border/60 hover:text-fg' /** Top-level chrome: a sticky nav bar plus the routed page in an . */ export function AppShell() { return (
) }