import { Outlet, Link, useLocation } from 'react-router-dom'; import { LayoutDashboard, MessageSquare, BookOpen, Settings, Bot, Users } from 'lucide-react'; const navigation = [ { name: '工作台', href: '/workbench', icon: MessageSquare }, { name: '数据看板', href: '/', icon: LayoutDashboard }, { name: '知识库', href: '/knowledge', icon: BookOpen }, { name: '自动化', href: '/automation', icon: Bot }, { name: '系统设置', href: '/settings', icon: Settings }, ]; export default function Layout() { const location = useLocation(); return (
{/* 侧边栏 */} {/* 主内容区 */}

{navigation.find(n => n.href === location.pathname)?.name || '工作台'}

多平台智能客服系统
); }