"use client" import { useState } from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { LayoutDashboard, Database, Users, BrainCircuit, Settings, ChevronLeft } from 'lucide-react' export default function Sidebar() { const pathname = usePathname() const [expanded, setExpanded] = useState(true) const toggleSidebar = () => { setExpanded(!expanded) } // 简化的导航结构 const navItems = [ { title: "首页", href: "/", icon: , description: "总览与搜索" }, { title: "数据中台", href: "/data-platform", icon: , description: "多源数据整合" }, { title: "画像", href: "/user-portrait", icon: , description: "用户管理与分群" }, { title: "AI助手", href: "/ai-assistant", icon: , description: "AI分析与策略" }, ] return (
{/* 头部 */}
{expanded ? (

数据资产中台

) : (
)}
{/* 导航菜单 */}
{/* 底部设置和折叠按钮 */}
{expanded && 系统设置}
) }