import fs from "fs"; import path from "path"; import Link from "next/link"; import { PageHeader } from "@/components/page-header"; import { Card, CardContent } from "@/components/ui/card"; import { ExtractedVerseCount } from "../extracted-verse-count"; type ChapterInfo = { number: number; title: string; totalVerses: number; }; type Intro = { book: string; title: string; author: string; totalChapters: number; chapters: ChapterInfo[]; }; export default function BgPage() { const introPath = path.join(process.cwd(), "app/lib/books/bg/intro.json"); const intro: Intro = JSON.parse(fs.readFileSync(introPath, "utf-8")); return (
← Books

{intro.title}

{intro.author}

    {intro.chapters.map((ch) => (
  • Chapter {ch.number}

    {ch.title}

  • ))}
); }