(text: string, color: Color | undefined)
| 224 | * Theme resolution should happen at component layer, not here. |
| 225 | */ |
| 226 | export function applyColor(text: string, color: Color | undefined): string { |
| 227 | if (!color) { |
| 228 | return text |
| 229 | } |
| 230 | return colorize(text, color, 'foreground') |
| 231 | } |
| 232 |
no test coverage detected