"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Thermometer, Zap, Wind, Server, Bell, BarChart3, Settings, Database, ChevronLeft, ChevronRight, Map, Gauge, Fuel, Droplets, Flame, Leaf, Network, Wrench, } from "lucide-react"; import { cn } from "@/lib/utils"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import { useState } from "react"; interface NavItem { href: string; label: string; icon: React.ElementType; } interface NavGroup { label: string; items: NavItem[]; } const navGroups: NavGroup[] = [ { label: "Overview", items: [ { href: "/dashboard", label: "Dashboard", icon: LayoutDashboard }, { href: "/floor-map", label: "Floor Map", icon: Map }, ], }, { label: "Infrastructure", items: [ { href: "/power", label: "Power", icon: Zap }, { href: "/generator", label: "Generator", icon: Fuel }, { href: "/cooling", label: "Cooling", icon: Wind }, { href: "/environmental", label: "Environmental", icon: Thermometer }, { href: "/network", label: "Network", icon: Network }, ], }, { label: "Safety", items: [ { href: "/leak", label: "Leak Detection", icon: Droplets }, { href: "/fire", label: "Fire & Safety", icon: Flame }, ], }, { label: "Operations", items: [ { href: "/assets", label: "Assets", icon: Server }, { href: "/alarms", label: "Alarms", icon: Bell }, { href: "/capacity", label: "Capacity", icon: Gauge }, ], }, { label: "Management", items: [ { href: "/reports", label: "Reports", icon: BarChart3 }, { href: "/energy", label: "Energy & CO₂", icon: Leaf }, { href: "/maintenance", label: "Maintenance", icon: Wrench }, ], }, ]; export function Sidebar() { const pathname = usePathname(); const [collapsed, setCollapsed] = useState(false); return ( ); }