import { Link, useLocation } from 'react-router-dom' import { clsx } from 'clsx' import { useAppStore } from '@/stores/useAppStore' import ittoIcon from '@/data/icon/ittoico.png' import { Home, BookOpen, Layers, Scissors, LayoutGrid, Share2, Settings, ChevronLeft, ChevronRight, GraduationCap, BookMarked, Gauge, Images, } from 'lucide-react' const navItems = [ { path: '/', label: '首页', icon: Home }, { path: '/process-matrix', label: '49过程矩阵', icon: LayoutGrid }, { path: '/process-practice', label: '过程背诵练习', icon: GraduationCap }, { path: '/knowledge-areas', label: '知识领域', icon: BookOpen }, { path: '/process-groups', label: '过程组', icon: Layers }, { path: '/knowledge-areas-tailoring', label: '裁剪因素', icon: Scissors }, { path: '/process-graph', label: '过程关系图', icon: Share2 }, { path: '/principles', label: '十二项原则', icon: BookMarked }, { path: '/performance-domains', label: '八大绩效域', icon: Gauge }, { path: '/learning-maps', label: '一图流', icon: Images }, { path: '/settings', label: '设置', icon: Settings }, ] export function Sidebar() { const location = useLocation() const sidebarOpen = useAppStore((s) => s.sidebarOpen) const toggleSidebar = useAppStore((s) => s.toggleSidebar) return ( <> {/* 移动端遮罩 */} {sidebarOpen && (
)} {/* 侧边栏 */} > ) }