'use client'; import { ThemeToggle } from '@/components/ui/theme-toggle'; import { getCurrentNavigationItem } from '@/lib/utils/navigation'; import { publicEnv } from '@/lib/env/public-env'; import { useAppShellStore } from '@/store/app-shell'; import { usePathname } from 'next/navigation'; export function DashboardTopbar() { const pathname = usePathname(); const currentPath = pathname ?? '/'; const toggleSidebar = useAppShellStore((state) => state.toggleSidebar); const currentItem = getCurrentNavigationItem(currentPath); return (

当前模块

{currentItem?.label ?? 'ATSFlare 控制台'}

静态导出模式 版本 {publicEnv.appVersion}
); }