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