import React from 'react'; import { RefreshCw } from 'lucide-react'; import { APP_VERSION } from '../version'; import type { AvailableUpdate } from '../lib/useUpdateCheck'; // Shown when the server got a new MindSift (lib/useUpdateCheck): reloading fetches the new app (the // service worker loads pages from the network first). export const UpdateAvailableModal: React.FC<{ update: AvailableUpdate; onLater: () => void }> = ({ update, onLater }) => (
e.stopPropagation()} className="w-full max-w-sm panel-surface shadow-panel p-5 space-y-4" >

Neue Version verfügbar

Der Server wurde aktualisiert {update.version && update.version !== APP_VERSION ? ( <> {' '}auf {update.version} ) : null} . Lade die Seite neu, um sie zu nutzen; ungespeicherte Eingaben in offenen Feldern gehen dabei verloren.

);