(status: string | undefined | null)
| 77 | * @param status - Backend status value (e.g. "transmitting"). |
| 78 | */ |
| 79 | export 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. |