import { useApp } from '../context/AppContext'; import { NavLink } from 'react-router-dom'; import './Sidebar.css'; const NAV_ITEMS = [ { to: '/', icon: '📊', label: 'P1 · 决策概览' }, { to: '/factors', icon: '🔍', label: 'P2 · 因子分析' }, { to: '/prediction', icon: '📈', label: 'P3 · 风险预测' }, { to: '/stress', icon: '⚡', label: 'P4 · 压力测试' }, { to: '/industry', icon: '🏭', label: 'P5 · 行业与对冲' }, { to: '/validation', icon: '🔬', label: 'P6 · 模型验证' }, { to: '/governance', icon: '🗄️', label: 'P7 · 数据治理' }, { to: '/agent', icon: '🤖', label: 'P8 · AI Agent' }, { to: '/pipeline', icon: '⚙️', label: 'P9 · 自动化管道' }, ]; export default function Sidebar() { const { benchmarks, currentBM, setCurrentBM, months, currentMonth, setCurrentMonth } = useApp(); return ( ); }