// 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') return

No 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) return

Nothing tagged in these verses.

; const head = 'mb-1 text-[11px] uppercase tracking-wide text-[var(--r-sub)]'; return (
{people.length > 0 &&

People

} {places.length > 0 && (

Places

)} {events.length > 0 &&

Events

}

People, places and events: Theographic Bible Metadata, CC BY-SA 4.0.

); }