(status: HyperframesRenderStatus | string)
| 8 | import type { HyperframesRenderStatus } from "./_gen/types.js"; |
| 9 | |
| 10 | export function colorStatus(status: HyperframesRenderStatus | string): string { |
| 11 | switch (status) { |
| 12 | case "completed": |
| 13 | return c.success(status); |
| 14 | case "failed": |
| 15 | return c.error(status); |
| 16 | case "rendering": |
| 17 | return c.progress(status); |
| 18 | default: |
| 19 | return c.dim(status); |
| 20 | } |
| 21 | } |
no test coverage detected