import { WEBHOOK_SECRET } from "@mcpedia/config"; import { cookies } from "next/headers"; import DocForm from "@/components/DocForm"; import Link from "next/link"; // GET /create — show the document create form. // Requires admin cookie auth. export default async function CreatePage() { const cookieStore = await cookies(); const canEdit = cookieStore.get("mcpedia_admin")?.value != null; if (!canEdit) { return (

Authentication required

You must be logged in to create documents.

Login
); } return (
← Back

Create Document

); }