(modality: string)
| 54 | } |
| 55 | |
| 56 | export function renderModalityIcon(modality: string) { |
| 57 | const label = |
| 58 | modality === "pdf" |
| 59 | ? "PDF" |
| 60 | : modality[0]!.toUpperCase() + modality.slice(1); |
| 61 | const icon = MODALITY_ICONS[modality]; |
| 62 | if (!icon) return ""; |
| 63 | return `<span class="modality-icon" data-tooltip="${label}">${icon}</span>`; |
| 64 | } |
| 65 | |
| 66 | export function renderModalities(modalities?: string[]) { |
| 67 | if (!modalities || modalities.length === 0) return "-"; |
nothing calls this directly
no outgoing calls
no test coverage detected