"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Cpu, Database, CreditCard, Users, UserCheck, BarChart3, Settings, FileText, ScrollText, Activity, ShieldAlert, } from "lucide-react"; const navGroups = [ { label: "监控", items: [ { href: "/ops/overview", icon: LayoutDashboard, label: "总览" }, { href: "/ops/health", icon: Activity, label: "API 状态" }, { href: "/ops/system", icon: Cpu, label: "系统状态" }, { href: "/ops/training", icon: Database, label: "训练数据" }, { href: "/ops/analytics", icon: BarChart3, label: "转化分析" }, ], }, { label: "运营", items: [ { href: "/ops/payments", icon: CreditCard, label: "支付管理" }, { href: "/ops/memberships", icon: UserCheck, label: "会员订阅" }, { href: "/ops/telegram-audit", icon: ShieldAlert, label: "电报清理" }, { href: "/ops/users", icon: Users, label: "用户积分" }, ], }, { label: "管理", items: [ { href: "/ops/config", icon: Settings, label: "系统配置" }, { href: "/ops/subscriptions", icon: ScrollText, label: "订阅操作" }, { href: "/ops/view-logs", icon: FileText, label: "日志查看" }, ], }, { label: "历史", items: [ { href: "/ops/truth-history", icon: Activity, label: "真值历史" }, ], }, ]; export function AdminSidebar() { const pathname = usePathname(); return ( ); }