"use client"; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn } from '@/public/lib/utils'; import { Button } from '@/components/ui/button'; import { PanelRightClose } from 'lucide-react'; import { navigationItems } from './type'; interface SidebarProps { collapsed: boolean; onToggle: (collapsed: boolean) => void; } export function Sidebar({ collapsed, onToggle }: SidebarProps) { const pathname = usePathname(); return ( <> {/* Sidebar */}