import type { CanvasItem, QueryAttempt } from "@/lib/types"; import { queryAttemptItem } from "@/lib/layout"; const statusText = { hit: "命中", empty: "无结果", failure: "失败", running: "进行中", interrupted: "构建中断", unknown: "状态未知" } as const; export function QueryAttemptList({ id, attempts, roundIndex, branchId, onOpen }: { id?: string; attempts: QueryAttempt[]; roundIndex: number; branchId: number; onOpen: (item: CanvasItem, target: "business") => void }) { return
    {attempts.map((attempt, index) => { const item = queryAttemptItem(attempt, roundIndex, branchId); return
  1. ; })}
; }