import type { Metadata } from "next"; import Link from "next/link"; import { notFound } from "next/navigation"; import { getBookMeta } from "@/lib/api"; import { ogForBook } from "@/lib/og"; import { PageHeader } from "@/components/layout/page-header"; import { JsonLd } from "@/components/seo/json-ld"; import { bookJsonLd } from "@/lib/jsonld"; import { Card, CardContent } from "@/components/ui/card"; import { ExtractedVerseCount } from "../extracted-verse-count"; export function generateMetadata(): Metadata { return ogForBook("sb1962"); } type ChapterInfo = { number: number; title: string; totalVerses: number; }; export default async function Sb1962Page() { const meta = await getBookMeta("sb1962"); if (!meta) notFound(); const intro = meta as unknown as { book: string; title: string; author: string; description?: string; totalChapters: number; chapters: ChapterInfo[]; }; return (
← Books

{intro.title}

{intro.author}

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

    {ch.title}

  • ))}
); }