export type BackstoryUnlockedChapter = { id: string; title: string; content: string; }; export type BackstoryLockedChapter = { id: string; title: string; teaser: string; affinityRequired: number; }; interface BackstoryArchiveProps { publicSummary?: string | null; unlockedChapters: BackstoryUnlockedChapter[]; lockedChapters: BackstoryLockedChapter[]; } export function BackstoryArchive({ publicSummary, unlockedChapters, lockedChapters, }: BackstoryArchiveProps) { const totalChapters = unlockedChapters.length + lockedChapters.length; return (