import type { WorkflowsPageLogic } from '../WorkflowsPageLogic'; const STATS = [ { key: 'total', label: '工作流数量', tone: 'brand' }, { key: 'enabled', label: '启用中', tone: 'success' }, { key: 'scheduled', label: '定时运行', tone: 'warning' } ] as const; export default function WorkflowStatsStrip({ logic }: { logic: WorkflowsPageLogic }) { return (
{STATS.map((item) => (
{item.label}
{logic.stats[item.key]} 实时状态
))}
); }