nav.tsx 705 Bytes
import {
  LayoutDashboard,
  History as HistoryIcon,
  Settings as SettingsIcon,
  type LucideIcon,
} from 'lucide-react';

export interface NavItem {
  to: string;
  label: string;
  desc: string;
  icon: LucideIcon;
  end?: boolean;
}

export const navItems: NavItem[] = [
  {
    to: '/',
    label: '工作台',
    desc: '提交任务、查看日志与实时预览',
    icon: LayoutDashboard,
    end: true,
  },
  {
    to: '/history',
    label: '历史任务',
    desc: '全部生成记录与报告',
    icon: HistoryIcon,
  },
  {
    to: '/settings',
    label: '设置',
    desc: '凭据、模型与服务信息',
    icon: SettingsIcon,
  },
];

export const brandIcon = LayoutDashboard;