import fs from "fs"; import path from "path"; import Link from "next/link"; 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}

); }