export const dynamic = "force-dynamic"; import Link from "next/link"; import { notFound } from "next/navigation"; import { getOtherDocumentMeta, slugToBookCode } from "@/lib/other-documents"; import { PageHeader } from "@/components/page-header"; import { Card, CardContent } from "@/components/ui/card"; export default async function OtherDocumentIndexPage({ params, }: { params: Promise<{ slug: string }>; }) { const { slug } = await params; const bookCode = slugToBookCode(slug); const meta = await getOtherDocumentMeta(bookCode); if (!meta) notFound(); return (
← Other Documents

{meta.title}

{meta.author}

{/* Description */} {meta.description && (

{meta.description}

)} {/* Chapters */} {meta.chapters.length > 0 && (

Chapters

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

    {ch.title}

  • ))}
)}
); }