(labelKey: string, value: unknown)
| 921 | } |
| 922 | |
| 923 | function warningDetail(labelKey: string, value: unknown): AppNoticeDetail | undefined { |
| 924 | if (value === undefined || value === null || value === '') return undefined; |
| 925 | return { label: i18n.global.t(`warnings.details.${labelKey}`), value: formatDetailValue(value) }; |
| 926 | } |
| 927 | |
| 928 | function formatDetailValue(value: unknown): string { |
| 929 | if (value instanceof Error) { |
no test coverage detected