"use client"; import { useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; /** * Left sidebar navigation with collapsible sections. * Organized by workflow phase: Research, Execution, Analytics, Settings. */ interface NavSection { title: string; icon: string; items: { label: string; href: string }[]; } const SECTIONS: NavSection[] = [ { title: "Research", icon: "📊", items: [ { label: "Overview", href: "/" }, { label: "Chart Lab", href: "/chart-lab" }, { label: "Institutional", href: "/institutional" }, ], }, { title: "Execution", icon: "⚡", items: [ { label: "Trade Plan", href: "/trade-plan" }, { label: "Execution", href: "/execution" }, { label: "Daily Focus", href: "/daily-focus" }, ], }, { title: "Analytics", icon: "🔬", items: [ { label: "Filings", href: "/filings" }, { label: "Options DD", href: "/options-dd" }, ], }, { title: "Settings", icon: "⚙️", items: [ { label: "Profile / Auth", href: "/settings" }, ], }, ]; export function SidebarNav() { const pathname = usePathname(); const [collapsed, setCollapsed] = useState>({}); const toggleCollapse = (sectionTitle: string) => { setCollapsed(prev => ({ ...prev, [sectionTitle]: !prev[sectionTitle] })); }; return ( ); }