MCPcopy
hub / github.com/Zleap-AI/SAG / processStatusLabel

Function processStatusLabel

web/src/App.tsx:3703–3707  ·  view source on GitHub ↗
(status: ProcessStepStatus, t: (zh: string, en: string) => string)

Source from the content-addressed store, hash-verified

3701}
3702
3703function processStatusLabel(status: ProcessStepStatus, t: (zh: string, en: string) => string) {
3704 if (status === "running") return t("运行中", "Running");
3705 if (status === "failed") return t("失败", "Failed");
3706 return t("完成", "Done");
3707}
3708
3709function processStatusClassName(status: ProcessStepStatus) {
3710 if (status === "failed") return "border-red-200 bg-red-50 text-red-700";

Callers 1

ProcessPanelFunction · 0.85

Calls 1

tFunction · 0.85

Tested by

no test coverage detected