import { isSignupsDisabled } from "@/lib/site-settings";
import { SignupForm } from "./signup-form";

export default async function SignupPage({
  searchParams,
}: {
  searchParams: Promise<{ invite?: string }>;
}) {
  const { invite } = await searchParams;
  const signupsDisabled = await isSignupsDisabled();

  return <SignupForm signupsDisabled={signupsDisabled} inviteToken={invite ?? null} />;
}
