'use strict';
import { jsx } from 'react/jsx-runtime';
import RegisterForm from '../../../fd-app-toolbox/auth-forms/register-form/RegisterForm.js';
import { checkUserWorkspaceInviteCode } from '../../../server/workspace/workspace-invite/workspace-user-invites.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
async function SignUpPage({
  searchParams
}) {
  const resolvedParams = await searchParams;
  const userInviteValidationResultPromise = checkUserWorkspaceInviteCode(resolvedParams.inviteCode);
  return /* @__PURE__ */jsx("main", {
    children: /* @__PURE__ */jsx(RegisterForm, {
      userInviteValidationResultPromise,
      userWorkspaceInviteId: resolvedParams.inviteCode
    })
  });
}
__name(SignUpPage, "SignUpPage");

export { SignUpPage as default };
