(t0)
| 11 | suffix?: string; |
| 12 | }; |
| 13 | export function TaskStatusText(t0) { |
| 14 | const $ = _c(4); |
| 15 | const { |
| 16 | status, |
| 17 | label, |
| 18 | suffix |
| 19 | } = t0; |
| 20 | const displayLabel = label ?? status; |
| 21 | const color = status === "completed" ? "success" : status === "failed" ? "error" : status === "killed" ? "warning" : undefined; |
| 22 | let t1; |
| 23 | if ($[0] !== color || $[1] !== displayLabel || $[2] !== suffix) { |
| 24 | t1 = <Text color={color} dimColor={true}>({displayLabel}{suffix})</Text>; |
| 25 | $[0] = color; |
| 26 | $[1] = displayLabel; |
| 27 | $[2] = suffix; |
| 28 | $[3] = t1; |
| 29 | } else { |
| 30 | t1 = $[3]; |
| 31 | } |
| 32 | return t1; |
| 33 | } |
| 34 | export function ShellProgress(t0) { |
| 35 | const $ = _c(4); |
| 36 | const { |
nothing calls this directly
no outgoing calls
no test coverage detected