"use client"; import React from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Cpu, FileText, MessageSquareHeart, User, History, ShieldAlert, Sparkles, LucideIcon, } from "lucide-react"; import { useAuth } from "@/lib/auth-context"; interface NavItem { name: string; href: string; icon: LucideIcon; badge?: string; highlight?: boolean; } export const Sidebar: React.FC = () => { const pathname = usePathname(); const { user } = useAuth(); const navItems: NavItem[] = [ { name: "Overview", href: "/dashboard", icon: LayoutDashboard }, { name: "Biomedical NER", href: "/ner", icon: Cpu, badge: "Local ML" }, { name: "Medical Reports", href: "/reports", icon: FileText }, { name: "AI Assistant", href: "/assistant", icon: MessageSquareHeart }, { name: "Health Profile", href: "/profile", icon: User }, { name: "Medical History", href: "/history", icon: History }, ]; if (user?.role === "ADMIN") { navItems.push({ name: "Admin & Audit", href: "/admin", icon: ShieldAlert }); } // Demo walkthrough always available navItems.push({ name: "Mentor Demo Mode", href: "/demo", icon: Sparkles, highlight: true }); return ( ); };