MCPcopy Create free account
hub / github.com/Tong89/smartNode / labelStatus

Function labelStatus

frontend/src/utils/format.ts:79–82  ·  view source on GitHub ↗
(status: string | undefined | null)

Source from the content-addressed store, hash-verified

77 * @param status - Backend status value (e.g. "transmitting").
78 */
79export function labelStatus(status: string | undefined | null): string {
80 if (!status) return '未知';
81 return STATUS_LABELS[status] || status;
82}
83
84/**
85 * Return the human-readable label for a transmission-method / link mode.

Callers 1

format.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected