import { NavLink, Outlet } from 'react-router-dom' import { LayoutDashboard, Upload, FileText, Search, List, AlertCircle, ShoppingCart, TrendingUp, BarChart2, PieChart, Activity, RefreshCw, Calendar, Users, Hotel, BookOpen, Wheat, ChefHat, UtensilsCrossed, Menu, ShieldCheck, Package, Settings, ChevronRight, TableProperties, } from 'lucide-react' import { useAuth } from './AuthGate' import { can } from '../types' const ICON = { size: 15, strokeWidth: 1.75 } function SidebarSection({ label, children }: { label: string; children: React.ReactNode }) { return (
{label}
{children}
) } function NavItem({ to, label, icon: Icon }: { to: string; label: string; icon: React.ComponentType }) { return ( isActive ? 'active' : ''}> {label} ) } export default function Layout() { const { user } = useAuth() return (
{/* Mobile top bar */}
Kitchen
) }