(enabled: boolean, blockedBy: string[])
| 36 | export type Diagnostic = React.ReactNode; |
| 37 | |
| 38 | function formatGateStatus(enabled: boolean, blockedBy: string[]): string { |
| 39 | if (enabled) { |
| 40 | return 'enabled' |
| 41 | } |
| 42 | |
| 43 | return blockedBy.length > 0 |
| 44 | ? `disabled (${blockedBy.join(', ')})` |
| 45 | : 'disabled' |
| 46 | } |
| 47 | |
| 48 | export function buildRuntimeModeProperties(): Property[] { |
| 49 | const isInternalBuild = |
no outgoing calls
no test coverage detected