"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; import { ROUTES } from "@/config/constants"; import { LayoutDashboard, Key, FileText, Database, Users, Brain, ChevronLeft, ChevronRight, Megaphone, } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useState } from "react"; const navigation = [ { name: "Dashboard", href: ROUTES.HOME, icon: LayoutDashboard }, { name: "API Management", href: ROUTES.API_MANAGEMENT, icon: Key }, { name: "Campaign Management", href: ROUTES.CAMPAIGNS, icon: Megaphone }, { name: "CMS Content", href: ROUTES.CMS_CONTENT, icon: FileText }, { name: "CMS Buckets", href: ROUTES.CMS_BUCKETS, icon: Database }, { name: "Users", href: ROUTES.USERS, icon: Users }, { name: "OpenAI", href: ROUTES.OPENAI, icon: Brain }, ]; export function Sidebar() { const pathname = usePathname(); const [collapsed, setCollapsed] = useState(false); return (