MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatGateStatus

Function formatGateStatus

src/utils/status.tsx:38–46  ·  view source on GitHub ↗
(enabled: boolean, blockedBy: string[])

Source from the content-addressed store, hash-verified

36export type Diagnostic = React.ReactNode;
37
38function 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
48export function buildRuntimeModeProperties(): Property[] {
49 const isInternalBuild =

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected