import { NavLink } from 'react-router-dom' import { LayoutDashboard, Globe, BarChart2, FlaskConical, History, Calendar, TrendingUp, Zap, DollarSign, Settings, BrainCircuit, Activity, BookOpen, FileBarChart, Brain, ShieldAlert, Microscope, ScrollText, Gauge, GitCompare, Building2, Users, Layers, ScanEye, CandlestickChart, Crosshair, PlayCircle } from 'lucide-react' import { useGeoRiskScore, useAiStatus, usePortfolioSummary } from '../../hooks/useApi' import clsx from 'clsx' const nav = [ { to: '/', icon: LayoutDashboard, label: 'Cockpit' }, { to: '/geo', icon: Globe, label: 'Geopolitical Radar' }, { to: '/markets', icon: BarChart2, label: 'Markets & Prices' }, { to: '/macro', icon: Activity, label: 'Macro Regime' }, { to: '/options', icon: TrendingUp, label: 'Options Lab' }, { to: '/patterns', icon: Zap, label: 'Patterns' }, { to: '/pattern-lab', icon: FlaskConical, label: 'Pattern Lab' }, { to: '/portfolio', icon: DollarSign, label: 'Portfolio' }, { to: '/journal', icon: BookOpen, label: 'Trading Journal' }, { to: '/rapport', icon: FileBarChart, label: 'Cycle Report' }, { to: '/super-contexte', icon: Brain, label: 'Super Context' }, { to: '/analytics', icon: FlaskConical, label: 'Analytics' }, { to: '/analytics-advanced', icon: Microscope, label: 'Advanced Analytics' }, { to: '/risk', icon: ShieldAlert, label: 'Risk Dashboard' }, { to: '/var', icon: Gauge, label: 'VaR Analysis' }, { to: '/position-history', icon: GitCompare, label: 'Position History' }, { to: '/backtest', icon: History, label: 'Backtest' }, { to: '/calendar', icon: Calendar, label: 'Calendar' }, { to: '/institutional', icon: Building2, label: 'Inst. Reports' }, { to: '/specialist-desks', icon: Users, label: 'Specialist Desks' }, { to: '/instruments', icon: CandlestickChart, label: 'Instrument Snap.' }, { to: '/impact', icon: Crosshair, label: 'Impact Monitor' }, { to: '/cycle-actions', icon: PlayCircle, label: 'Cycle Actions' }, { to: '/snapshot', icon: ScanEye, label: 'Snapshot Externe' }, { to: '/timeline', icon: Layers, label: 'Timeline' }, { to: '/logs', icon: ScrollText, label: 'System Logs' }, { to: '/config', icon: Settings, label: 'Configuration' }, ] const riskColors: Record = { low: 'text-emerald-400 bg-emerald-900/30 border-emerald-700/40', medium: 'text-yellow-400 bg-yellow-900/30 border-yellow-700/40', high: 'text-orange-400 bg-orange-900/30 border-orange-700/40', extreme: 'text-red-400 bg-red-900/30 border-red-700/40 animate-pulse', } export default function Sidebar() { const { data: riskScore } = useGeoRiskScore() const { data: aiStatus } = useAiStatus() const { data: summary } = usePortfolioSummary() return ( ) }