MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / appUpdateNoticeLabel

Function appUpdateNoticeLabel

packages/app-core/src/lib/app-update-state.ts:47–58  ·  view source on GitHub ↗
(state: AppUpdateState | null)

Source from the content-addressed store, hash-verified

45}
46
47export 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
60export function appUpdatePrimaryActionLabel(state: AppUpdateState | null): string | null {
61 switch (state?.phase) {

Callers 2

AppUpdateNoticeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected