(state: AppUpdateState | null)
| 45 | } |
| 46 | |
| 47 | export function appUpdateNoticeLabel(state: AppUpdateState | null): string | null { |
| 48 | switch (state?.phase) { |
| 49 | case 'available': |
| 50 | return `ZenNotes ${state.availableVersion ?? 'update'} is available` |
| 51 | case 'downloaded': |
| 52 | return `ZenNotes ${state.availableVersion ?? 'update'} is ready` |
| 53 | case 'downloading': |
| 54 | return `Downloading ZenNotes ${state.availableVersion ?? 'update'}` |
| 55 | default: |
| 56 | return null |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | export function appUpdatePrimaryActionLabel(state: AppUpdateState | null): string | null { |
| 61 | switch (state?.phase) { |
no outgoing calls
no test coverage detected