"use client" import { Gamepad2, LayoutDashboard, ListOrdered, Palette, Settings2, Store, Users, } from "lucide-react" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { useAuthStore } from "@/store/auth" const playerLinks = [ { href: "/dashboard", label: "概览", icon: LayoutDashboard }, { href: "/dashboard/services", label: "服务管理", icon: ListOrdered }, ] const ownerLinks = [ { href: "/dashboard", label: "概览", icon: LayoutDashboard }, { href: "/dashboard/services", label: "服务管理", icon: ListOrdered }, { href: "/dashboard/shop", label: "店铺管理", icon: Store }, { href: "/dashboard/shop/employees", label: "员工管理", icon: Users }, { href: "/dashboard/shop/templates", label: "模板编辑", icon: Palette }, { href: "/dashboard/settings", label: "店铺设置", icon: Settings2 }, ] export function DashboardSidebar() { const pathname = usePathname() const { currentRole } = useAuthStore() const links = currentRole === "owner" ? ownerLinks : playerLinks return ( ) }