({
text,
sub,
dim,
green
}: {
text: string;
sub?: string;
dim?: boolean;
green?: boolean;
})
| 1 | import color from 'picocolors'; |
| 2 | |
| 3 | export function heading({ |
| 4 | text, |
| 5 | sub, |
| 6 | dim, |
| 7 | green |
| 8 | }: { |
| 9 | text: string; |
| 10 | sub?: string; |
| 11 | dim?: boolean; |
| 12 | green?: boolean; |
| 13 | }) { |
| 14 | if (green) { |
| 15 | return `${color.bgGreen(color.black(` ${text} `))} ${sub && sub}`; |
| 16 | } |
| 17 | if (dim) { |
| 18 | return `${color.bgBlack(color.white(` ${text} `))} ${sub && sub}`; |
| 19 | } |
| 20 | return `${color.bold(color.bgCyan(color.black(` ${text} `)))} ${sub && sub}`; |
| 21 | } |
no outgoing calls
no test coverage detected