// On a study card: whether its Bible text works without a connection, and a button to fix that. import { DownloadProgress } from './OfflineSave.jsx'; import { offlineStatus } from '../utils/offline.js'; export default function OfflineBadge({ project, offline }) { if (!project) return null; const status = offlineStatus(project, offline.saved); const label = 'mt-1 text-xs'; if (offline.job) return
✓ Works offline
; if (status.state === 'licensed') { returnNotes work offline; {status.translation} text needs a connection
; } const next = status.missing[0]; return (Needs a connection for {status.missing.map((b) => b.name).join(', ')}
); }