import { Suspense } from "react";

import { JackpotConfigScreen } from "@/modules/jackpot/jackpot-config-screen";
import { RulesPageShell } from "@/modules/rules/rules-page-shell";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("jackpot", "configTitle");

export default function AdminJackpotPage() {
  return (
    <RulesPageShell>
      <Suspense fallback={<p className="text-sm text-muted-foreground">Loading…</p>}>
        <JackpotConfigScreen />
      </Suspense>
    </RulesPageShell>
  );
}
