(date: string | null, fallback: string = '—')
| 174 | } |
| 175 | |
| 176 | export function formatLocalDateTimeLabel(date: string | null, fallback: string = '—'): string { |
| 177 | return date |
| 178 | ? new Date(date).toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' }) |
| 179 | : fallback; |
| 180 | } |
| 181 | |
| 182 | export function formatPaymentSummary(params: { |
| 183 | paymentSource: string | null; |
no outgoing calls
no test coverage detected