import { NavLink, useNavigate } from 'react-router-dom' import { LayoutDashboard, TrendingUp, Target, BarChart2, Filter, PieChart, BarChart3, Sparkles, Sun, Moon, Activity, RotateCcw, Waves, Globe, Layers, Briefcase, Newspaper, Brain, HeartPulse, } from 'lucide-react' import { useThemeStore } from '../store/themeStore' const NAV_SECTIONS = [ { label: 'Planning', items: [ { to: '/dashboard', label: 'Dashboard', icon: LayoutDashboard }, { to: '/forward', label: 'Forward Planner', icon: TrendingUp }, { to: '/goal', label: 'Goal Planner', icon: Target }, { to: '/scenario', label: 'Scenarios', icon: BarChart2 }, ], }, { label: 'Markets', items: [ { to: '/screener', label: 'Stock Screener', icon: Filter }, { to: '/optimizer', label: 'Portfolio Optimizer', icon: PieChart }, { to: '/analytics', label: 'Analytics Report', icon: BarChart3 }, { to: '/timeseries', label: 'Time Series', icon: Activity }, ], }, { label: 'Advanced', items: [ { to: '/sector-rotation', label: 'Sector Rotation', icon: RotateCcw }, { to: '/volatility', label: 'Volatility (GARCH)', icon: Waves }, { to: '/macro', label: 'Macro Dashboard', icon: Globe }, { to: '/risk-factors', label: 'Risk Factors', icon: Layers }, { to: '/ml-prediction', label: 'ML Predictor', icon: Brain }, { to: '/model-health', label: 'Model Health', icon: HeartPulse }, ], }, { label: 'Portfolio', items: [ { to: '/portfolio', label: 'Portfolio Tracker', icon: Briefcase }, { to: '/news', label: 'News Sentiment', icon: Newspaper }, ], }, { label: 'AI', items: [ { to: '/advisor', label: 'AI Advisor', icon: Sparkles }, ], }, ] export default function Layout({ children }: { children: React.ReactNode }) { const { theme, toggle } = useThemeStore() const navigate = useNavigate() return (