(label: QueryStatusLabel)
| 65 | } |
| 66 | |
| 67 | export function getQueryStatusColorByLabel(label: QueryStatusLabel) { |
| 68 | return label === 'fresh' |
| 69 | ? 'green' |
| 70 | : label === 'stale' |
| 71 | ? 'yellow' |
| 72 | : label === 'paused' |
| 73 | ? 'purple' |
| 74 | : label === 'inactive' |
| 75 | ? 'gray' |
| 76 | : 'blue' |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Displays a string regardless the type of the data |
no outgoing calls
no test coverage detected
searching dependent graphs…