import { StyleSheet } from 'react-native'; import { installUpdate, updaterAvailable, useUpdateState } from '@/lib/updates'; import { Body, Button, Card, Heading } from './ui'; /** "Update ready" on the feed, once a newer version has downloaded (lib/updates.ts). */ export function UpdateBanner() { const state = useUpdateState(); if (!updaterAvailable || (state.status !== 'ready' && state.status !== 'installing')) return null; return ( musicshare {state.update.version} is ready {state.update.notes ? ( {state.update.notes} ) : null}