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 } 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: 'Radar Géopolitique' }, { to: '/markets', icon: BarChart2, label: 'Marchés & Prix' }, { to: '/macro', icon: Activity, label: 'Régime Macro' }, { to: '/options', icon: TrendingUp, label: 'Options Lab' }, { to: '/patterns', icon: Zap, label: 'Patterns' }, { to: '/portfolio', icon: DollarSign, label: 'Portefeuille' }, { to: '/journal', icon: BookOpen, label: 'Journal de Bord' }, { to: '/rapport', icon: FileBarChart, label: 'Rapport IA' }, { to: '/super-contexte', icon: Brain, label: 'Super Contexte' }, { to: '/analytics', icon: FlaskConical, label: 'Analytics' }, { to: '/analytics-advanced', icon: Microscope, label: 'Analytics Avancées' }, { to: '/risk', icon: ShieldAlert, label: 'Risk Dashboard' }, { to: '/backtest', icon: History, label: 'Backtest' }, { to: '/calendar', icon: Calendar, label: 'Calendrier' }, { to: '/logs', icon: ScrollText, label: 'Logs Système' }, { 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 ( ) }