"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Users, Tag, Package, Banknote, Truck, Fuel, Send, BarChart3, ScrollText, Settings, Boxes, } from "lucide-react"; import { cn } from "@/lib/utils"; type NavItem = { href: string; label: string; icon: React.ComponentType<{ className?: string }>; }; const groups: { label: string; items: NavItem[] }[] = [ { label: "Overview", items: [ { href: "/dashboard", label: "Dashboard", icon: LayoutDashboard }, ], }, { label: "Operations", items: [ { href: "/customers", label: "Customers", icon: Users }, { href: "/delivery-notes", label: "Delivery Notes", icon: Package }, { href: "/cash-customers", label: "Cash Customers", icon: Banknote }, { href: "/suppliers", label: "Suppliers", icon: Truck }, { href: "/fuel-purchases", label: "Fuel Purchases", icon: Fuel }, ], }, { label: "Pricing & reports", items: [ { href: "/pricing", label: "Pricing", icon: Tag }, { href: "/send-statement", label: "Send Statement", icon: Send }, { href: "/custom-reports", label: "Custom Reports", icon: BarChart3 }, { href: "/statements", label: "Statement Log", icon: ScrollText }, ], }, { label: "Admin", items: [ { href: "/settings", label: "Settings", icon: Settings }, ], }, ]; export function Sidebar() { const pathname = usePathname(); return ( ); }