import { useApp } from '../context/AppContext.js'; import { bookOptions } from '../App.jsx'; export default function ImportPage() { const { authStatus, setCurrentPage, availableTranslations, importBookAbbrev, setImportBookAbbrev, importTranslation, setImportTranslation, importTitle, setImportTitle, importFile, importPreview, importBusy, importError, handleImportFileChange, runEpisodeImport, } = useApp(); return (

Bible Study Project

Import Session List

{authStatus}

How this works

This is a shortcut for setting up a multi-part study — a teaching series, sermon series, class curriculum, or podcast — all at once, instead of building each chapter and chunk by hand.

Upload a .docx containing a table with three columns: session number, title, and passage (e.g. 1:1–2). Each row becomes one chunk, grouped automatically by chapter. If you don't have a document like this, just use{' '} + New Project on the home page instead — this import step is entirely optional.

{importBusy &&

Working…

} {importError &&

{importError}

} {importPreview && !importBusy && (

{importPreview.length} session{importPreview.length === 1 ? '' : 's'} found {' · '} {importPreview.filter((s) => s.parsed && s.parsed !== 'invalid').length} with passages

{importPreview.map((spec) => ( ))}
#{spec.episodeNumber} {spec.title} {spec.parsed === 'invalid' ? unrecognized — skipped : spec.parsed ? spec.passage : marker (no passage)}
)}
); }