import Link from "next/link";
import { requirePlatformAdmin } from "@/lib/auth/guards";
import { de } from "@/lib/i18n/de";
import { BrigadeProvisionForm } from "./BrigadeProvisionForm";

export const metadata = { title: "Wehr anlegen — Administration" };

export default async function WehrNeuPage() {
  await requirePlatformAdmin();
  return (
    <div className="mx-auto max-w-2xl space-y-6">
      <div>
        <Link href="/admin/wehren" className="text-sm text-navy hover:underline">
          ← {de.admin.navWehren}
        </Link>
        <h1 className="mt-2 font-display text-2xl text-navy">
          {de.admin.wehrAnlegen}
        </h1>
      </div>
      <BrigadeProvisionForm />
    </div>
  );
}
