import Link from "next/link"; import { getBooks, getBookStructureStats } from "@/lib/book-catalog"; export default async function LibraryPage() { const books = await getBooks(); return (
{books.map((book) => { const stats = getBookStructureStats(book); return (
{book.category}

{book.title}

{book.author}

{book.wordCount} {stats.loreCount} 条资料 {stats.novelCount} 条正文

{book.description}

开始阅读
)})}
); }