import { NavLink, Outlet } from 'react-router-dom' import { useAuth } from '../auth/AuthContext' import { MobileBottomNav } from './MobileBottomNav' import { ThemeToggle } from './ThemeToggle' const navMain = [ { to: '/', label: '總覽' }, { to: '/jobs', label: '背景任務' }, { to: '/job-schedules', label: '排程' }, { to: '/ai', label: 'AI' }, ] const navMore = [ { to: '/job-templates', label: '模板' }, { to: '/settings', label: '設定' }, { to: '/profile', label: '會員' }, { to: '/permissions', label: '權限' }, ] function NavItem({ to, label, end }: { to: string; label: string; end?: boolean }) { return ( `rounded-[var(--radius-pill)] px-4 py-2 text-sm font-semibold transition ${ isActive ? 'bg-brand text-white shadow-soft' : 'text-ink hover:bg-brand-soft hover:text-brand' }` } > {label} ) } export function Layout() { const { member, uid, logout } = useAuth() return (

巡樓

{uid || member?.uid}

{uid || member?.uid}

) } function BadgePill({ children }: { children: React.ReactNode }) { return ( {children} ) }