// Thin strip under the top bar while reading a plan: which plan and day, one dot // per chapter of today's reading (filled = read, ringed = the chapter on screen), // and the translation. Tapping it opens the plan sheet. When you've wandered off // today's chapters (e.g. following a cross-reference) it offers a way back. export default function PlanStrip({ info, translation, inPlan, notice, onOpen, onJoin, onDot, onBackToDay }) { if (!info && !notice) return null; return (
{notice &&

{notice}

} {info && (
{inPlan && info.position === 0 && ( )} {inPlan && info.position > 0 && (
{info.refs.map((r, i) => { const key = `${r.book}.${r.chapter}`; const read = info.readSet.has(key); const current = i + 1 === info.position; return (
)}
)}
); }