import { Folder, Home, LogOutIcon, Settings } from "lucide-react"; import { useLocation, useNavigate } from "react-router"; import { cn } from "@/lib/utils"; import { useAuthStore } from "@/models/auth"; import { Button } from "./ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuTrigger, } from "./ui/dropdown-menu"; import { UserAvatar } from "./user-avatar"; interface NavItemProps { Icon: React.ComponentType>; label: string; to: string; } function NavItem({ Icon, label, to }: NavItemProps) { const navigate = useNavigate(); const location = useLocation(); const isActive = location.pathname === to; const handleClick = () => { navigate(to); }; return ( ); } export function Sidebar() { const authStore = useAuthStore(); return ( ); }