import Link from "next/link"; import { notFound } from "next/navigation"; import { getBookMeta } from "@/lib/api"; 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; }; export default async function BgPage() { const meta = await getBookMeta("bg"); if (!meta) notFound(); const intro = meta as unknown as { book: string; title: string; author: string; totalChapters: number; chapters: ChapterInfo[]; }; return (
← Books

{intro.title}

{intro.author}

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

    {ch.title}

  • ))}
); }