"use client" import { useRouter, usePathname } from "next/navigation" import { LayoutDashboard, Plus, User, FolderPlus, Package, MapPin } from "lucide-react" import { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider } from "@/components/ui/tooltip" import { ROUTES } from "@/utils/routes" interface NavItem { title: string href: string icon: React.ElementType gradient: string disabled?: boolean } const navItems: NavItem[] = [ { title: "Dashboard", href: ROUTES.DASHBOARD, icon: LayoutDashboard, gradient: "from-blue-400 to-indigo-500" }, { title: "Project", href: ROUTES.PROJECT, icon: FolderPlus, gradient: "from-blue-400 to-blue-600" }, { title: "Package", href: ROUTES.PACKAGE, icon: Package, gradient: "from-violet-400 to-purple-500" }, { title: "Location", href: ROUTES.LOCATION, icon: MapPin, gradient: "from-amber-400 to-orange-500" }, { title: "Account", href: ROUTES.ACCOUNT, icon: User, gradient: "from-purple-400 to-pink-500", disabled: true } ] export function SidebarNavigation() { const router = useRouter() const pathname = usePathname() const handleNavigation = (item: NavItem) => { if (item.disabled) return router.push(item.href) } const isNewAnalysisActive = pathname === ROUTES.NEW_ANALYSIS return ( ) }