"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 && 系统设置}
) }