'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { LayoutDashboard, FolderKanban, Settings } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useUIStore } from '@/stores/ui-store'; const navItems = [ { title: 'Dashboard', href: '/dashboard', icon: LayoutDashboard, }, { title: 'Projects', href: '/projects', icon: FolderKanban, }, { title: 'Settings', href: '/settings', icon: Settings, }, ]; export function Sidebar() { const pathname = usePathname(); const sidebarOpen = useUIStore((state) => state.sidebarOpen); if (!sidebarOpen) return null; return ( ); }