import type { Metadata } from "next"; import { PreviewBar } from "@/site/PreviewBar"; import { loadContent } from "@/site/load"; export const metadata: Metadata = { title: "Preview", robots: { index: false, follow: false } }; const WIDTHS: Record = { phone: 390, tablet: 820 }; /** * The preview at phone or tablet width (ยง4): the site in a frame of that width, so its layout is * exactly what a phone shows. The bar stays outside the frame. */ export default async function Frame({ searchParams }: { searchParams: Promise> }) { const q = await searchParams; const size = q.size === "tablet" ? "tablet" : "phone"; const c = await loadContent(); return (
{c.mode === "published" && c.preview && }