import { getBook, getAllChapters } from "@community/lib/ebook/book.server"; import { ScrollReaderShell } from "@community/components/ebook/ScrollReaderShell"; import { buildBookMetadata } from "@community/lib/ebook/metadata"; import { getAdSlot } from "@community/lib/ebook/site-config.server"; import { getServerFeatures } from "@community/lib/ebook/features.server"; import { getLocale } from "@community/lib/ebook/i18n/server"; import type { Metadata } from "next"; export async function generateMetadata(): Promise { const locale = await getLocale(); return buildBookMetadata(locale); } export default async function BookReadPage() { const locale = await getLocale(); const book = getBook(locale); const chapters = getAllChapters(locale); const f = getServerFeatures(); return ( ); }