"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; import { LayoutDashboard, Users, CreditCard, FileText, Banknote, Ticket, CheckSquare, UserCog, ClipboardList, Settings, Wifi, Briefcase, BarChart2, BookOpen, X, } from "lucide-react"; const navItems = [ { href: "/dashboard", label: "Dashboard", icon: LayoutDashboard }, { href: "/clients", label: "Clients", icon: Users }, { href: "/subscriptions", label: "Subscriptions", icon: Wifi }, { href: "/invoices", label: "Invoices", icon: FileText }, { href: "/payments", label: "Payments", icon: Banknote }, { href: "/remittances", label: "Remittances", icon: Briefcase }, { href: "/tickets", label: "Tickets", icon: Ticket }, { href: "/tasks", label: "Tasks", icon: CheckSquare }, { href: "/users", label: "Users", icon: UserCog }, { href: "/audit-log", label: "Audit Log", icon: ClipboardList }, { href: "/reports", label: "Reports", icon: BarChart2 }, { href: "/accounting", label: "Accounting", icon: BookOpen }, { href: "/settings", label: "Settings", icon: Settings }, ]; interface SidebarProps { isOpen: boolean; onClose: () => void; } export function Sidebar({ isOpen, onClose }: SidebarProps) { const pathname = usePathname(); return ( <> {/* Mobile overlay */} {isOpen && (
)} {/* Sidebar */} ); }