"use client" import { useState } from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { motion, AnimatePresence } from "framer-motion" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" import { LayoutDashboard, Users, Settings, ChevronLeft, ChevronRight, Building2, PanelLeftClose, } from "lucide-react" import { COMPANY_NAME } from "@/lib/constants" const navItems = [ { href: "/dashboard", label: "Dashboard", icon: LayoutDashboard }, { href: "/leads", label: "Leads", icon: Users }, { href: "/users", label: "Users", icon: Building2 }, { href: "/settings", label: "Settings", icon: Settings }, ] interface SidebarProps { collapsed: boolean onToggle: () => void mobileOpen: boolean onMobileClose: () => void } export function Sidebar({ collapsed, onToggle, mobileOpen, onMobileClose }: SidebarProps) { const pathname = usePathname() const sidebarContent = (
Sarah Chen
Admin