import type { ReactNode } from "react"; import type { UiStatus, ViewId } from "./types"; export function Icon({ name, size = 14 }: { name: string; size?: number }) { const paths: Record = { search: <>, settings: <>, play: , stop: , upload: <>, download: <>, plus: , close: , retry: <>, trash: <>, file: <>, check: , diff: <>, }; return ( ); } export function StatusPill({ state }: { state: UiStatus }) { const map: Record = { idle: "Idle", queued: "Queued", running: "Running", done: "Done", failed: "Failed", stopped: "Stopped", }; return ( {map[state]} ); } export function TopBar({ view, onView, onSettings, }: { view: ViewId; onView: (view: ViewId) => void; onSettings: () => void; }) { const tabs: Array<{ id: ViewId; num: string; label: string }> = [ { id: "polish", num: "01", label: "任务润色" }, { id: "api", num: "02", label: "API 分组" }, { id: "mcp", num: "03", label: "MCP 分组" }, ]; return (
T
Task Polisher
local
); } export function StatusBar({ view, total, done, failed, model, concurrency, message, }: { view: ViewId; total: number; done: number; failed: number; model: string; concurrency: number; message: string; }) { return ( ); }