import { Suspense } from "react"; import AppShell from "@/components/shell/AppShell"; import LibraryView from "@/components/tools/library/LibraryView"; import { loadLibrary } from "@/lib/library/load"; import { parseLibraryView } from "@/lib/library/filters.mjs"; import { e2eStreamDelay } from "@/lib/streamDelay"; import { toolsHref } from "@/lib/hrefs"; export const dynamic = "force-dynamic"; // THE POSTS LIBRARY (plans/x-trending.md, slice 3; lane posts-library): a // private X trending library, browsed by topic and judged — keep, drop, later // — before anything of it is published. No project: a library is no piece's. // // EVERYTHING IS THE EDITOR'S. The page reads the library through the editor // (lib/library/load.ts) and every press is the editor's action, written as // the operator's (/api/library/*). umtool writes no file of a library and // asks X nothing. Nothing here puts a library post into a project, a report, // an article, the post archive or a site: publishing is a later, explicit act. // // IT STREAMS: the head is sent at once, and the library — the read through // the editor, the slow part — behind a placeholder of its shape (page-level // Suspense; no loading.tsx). async function LibraryBody({ view }: { view: ReturnType }) { await e2eStreamDelay(); const data = await loadLibrary(view); if (!data.ok) { return (

{data.sentence}

); } return (
); } // What holds the library's place: the topics' column and a few post-shaped // rows, at the widths the filled page has. function LibraryPlaceholder() { return (