export const dynamic = "force-dynamic"; import Link from "next/link"; import { notFound } from "next/navigation"; import { getLobMeta, getLobIntroSegments } from "@/lib/lob"; import { PageHeader } from "@/components/page-header"; import { Card, CardContent } from "@/components/ui/card"; export default async function LobPage() { const meta = await getLobMeta(); if (!meta) notFound(); const introSegments = await getLobIntroSegments(); return (
← Books

{meta.title}

{meta.author}

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

{meta.description}

)} {/* Front Matter */} {introSegments.length > 0 && (

Front Matter

    {introSegments.map((seg) => (
  • {seg.title}

    {seg.paragraphs.length} paragraphs
  • ))}
)} {/* Texts */}

Texts

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

    {ch.title}

  • ))}
); }