import { Link } from '@tanstack/react-router' import { Icon } from '@/components/ui/Icon' import { useMe } from '@/lib/auth' import { cn } from '@/lib/cn' import { AccountMenu } from './AccountMenu' import { ThemeButton } from './ThemeButton' export type NavSection = 'gardens' | 'plants' | 'settings' /** The brand mark: sage sprout + "pansy" in the display face. */ export function Brand({ size = 19, textClassName }: { size?: number; textClassName?: string }) { return ( pansy ) } /** * The top nav shared by the Gardens, Plants and Settings pages (and the editor * on desktop): brand, centered section links, and the right cluster — theme * toggle, the settings gear for admins, the account avatar. */ export function Nav({ active }: { active?: NavSection }) { const me = useMe() const user = me.data const link = (to: '/gardens' | '/plants', id: NavSection, label: string) => ( {label} ) return ( ) }