(capabilities: Array<[string, boolean | undefined]>)
| 76 | } |
| 77 | |
| 78 | export function capabilitySummary(capabilities: Array<[string, boolean | undefined]>) { |
| 79 | const active = capabilities |
| 80 | .filter(([, value]) => value === true) |
| 81 | .map(([label]) => label); |
| 82 | |
| 83 | return active.length > 0 ? active.join(", ") : "-"; |
| 84 | } |
| 85 | |
| 86 | export function sortDate(value?: string) { |
| 87 | return value ?? ""; |
no outgoing calls
no test coverage detected