import { Link, useLocation } from "react-router-dom"; import { LayoutDashboard, Megaphone, Users, Mail, Flame, Inbox, Webhook, BarChart2, Building2, CreditCard, Settings } from "lucide-react"; import { cn } from "../utils/cn"; import { useTheme } from "../context/ThemeContext"; import AnimatedLogo from "./AnimatedLogo"; import Logo from "./Logo"; const navigation = [ { name: "Command Center", href: "/", icon: LayoutDashboard }, { name: "Campaigns", href: "/campaigns", icon: Megaphone }, { name: "Leads", href: "/leads", icon: Users }, { name: "Email Accounts", href: "/email-accounts", icon: Mail }, { name: "Warmup", href: "/warmup", icon: Flame }, { name: "Unified Inbox", href: "/inbox", icon: Inbox }, { name: "Webhooks", href: "/webhooks", icon: Webhook }, { name: "Analytics", href: "/analytics", icon: BarChart2 }, { name: "Clients", href: "/clients", icon: Building2 }, { name: "Pricing", href: "/pricing", icon: CreditCard }, { name: "Settings", href: "/settings", icon: Settings }, ]; export default function Sidebar({ onClose }: { onClose?: () => void }) { const location = useLocation(); const { config } = useTheme(); return (