import { Suspense } from "react";
import SignUpForm from "./SignUpForm";

export default async function SignUpPage({
  searchParams,
}: {
  searchParams: Promise<Record<string, string | string[] | undefined>>;
}) {
  const params = await searchParams;
  const embedded = params.embedded === "1";

  return (
    <Suspense fallback={null}>
      <SignUpForm embedded={embedded} />
    </Suspense>
  );
}
