import type { Metadata } from "next";
import { ArticleEditor } from "@/app/(admin)/_components/ArticleEditor";

export const metadata: Metadata = { title: "Article" };

/**
 * Article ids exist only in the CMS, so this route renders on request: the admin shell reads
 * the URL (usePathname), which would otherwise block prerendering a shell for unknown ids.
 */
export const instant = false;

export default async function Page({ params }: { params: Promise<{ id: string }> }) {
  return <ArticleEditor id={(await params).id} />;
}
