(label: QueryStatusLabel)
| 95 | * @returns The color name. |
| 96 | */ |
| 97 | export function getQueryStatusColorByLabel(label: QueryStatusLabel) { |
| 98 | return label === 'fresh' |
| 99 | ? 'green' |
| 100 | : label === 'stale' |
| 101 | ? 'yellow' |
| 102 | : label === 'paused' |
| 103 | ? 'purple' |
| 104 | : label === 'inactive' |
| 105 | ? 'gray' |
| 106 | : 'blue' |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Displays a string regardless of the type of the data. |
no outgoing calls
no test coverage detected