(error: unknown, pendingCount: number)
| 50 | * "⚠️ Network error: Server error. Please try again later. • 3 messages will retry when connection is restored" |
| 51 | */ |
| 52 | export function formatRetryBannerMessage(error: unknown, pendingCount: number): string { |
| 53 | const baseTitle = 'Network error' |
| 54 | const formatted = formatErrorForDisplay(error, baseTitle) |
| 55 | |
| 56 | const suffix = |
| 57 | pendingCount > 0 |
| 58 | ? ` • ${pendingCount} message${pendingCount === 1 ? '' : 's'} will retry when connection is restored` |
| 59 | : '' |
| 60 | |
| 61 | return `⚠️ ${formatted}${suffix}` |
| 62 | } |
nothing calls this directly
no test coverage detected