// The plan's control room, one tap from the reader: pick the day, tick chapters, // choose the Bible this plan is read in, and jump to another active plan. import Sheet from './Sheet.jsx'; import { ChevronLeft, ChevronRight, CheckIcon } from './icons.jsx'; import { READER_TRANSLATIONS } from '../../hooks/useBibleReader.js'; import { formatDayReadings } from '../../utils/readingPlans.js'; export default function PlanSheet({ open, onClose, info, translation, currentKey, streak, otherPlans, studyBusy, onDay, onToggleChapter, onGoChapter, onTranslation, onToggleDay, onSwitchPlan, onListen, onStudy, onLeave, }) { if (!info) return null; const label = (r) => formatDayReadings([r]); return (
Day {info.dayIndex + 1} of {info.plan.days}{info.done ? ' · read' : ''}

Reading

{info.refs.map((r) => { const key = `${r.book}.${r.chapter}`; const read = info.readSet.has(key); return (
{key === currentKey && reading}
); })}

This plan

Read in
Streak{streak.current} day{streak.current === 1 ? '' : 's'}
{otherPlans.length > 0 && ( <>

Other plans

{otherPlans.map((o) => ( ))} )}
); }