// People, places and events (Theographic data) tied to the chunk's verses. import { loadTheographic, useAsync } from '../../hooks/useVerseStudy.js'; import { PersonCard } from '../StudyPanel.jsx'; export default function PeopleChunkTab({ book, chapter, chunk }) { const { status, data } = useAsync(() => loadTheographic(book, chapter), [book, chapter]); if (status === 'loading') return
Loading…
; if (status === 'empty') returnNo people or places data for this chapter.
; const inChunk = (x) => x.verses?.some((n) => n >= chunk.startVerse && n <= chunk.endVerse); const people = data.people.filter(inChunk); const places = [...new Map(data.places.filter(inChunk).map((p) => [p.name, p])).values()]; const events = data.events.filter(inChunk); if (!people.length && !places.length && !events.length) returnNothing tagged in these verses.
; const head = 'mb-1 text-[11px] uppercase tracking-wide text-[var(--r-sub)]'; return (People
Places
Events
People, places and events: Theographic Bible Metadata, CC BY-SA 4.0.