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

{intro.title}

{intro.author}

); }