import { useNavigate } from 'react-router-dom' const tabs = [ { label: '总览', icon: '📊', path: '/dashboard' }, { label: 'Gateway', icon: '📡', path: '/gateway' }, { label: 'Kanban', icon: '📋', path: '/kanban' }, { label: 'Cron', icon: '⏰', path: '/cron' }, ] export interface TabBarProps { activePath: string } export default function TabBar({ activePath }: TabBarProps) { const navigate = useNavigate() return (