{props.type === 'sign-in' ? t("Sign in to your account") : t("Create a new account")}
{props.type === 'sign-in' ? (
project.config.signUpEnabled && (
{t("Don't have an account?")}{" "}
{
runAsynchronously(hexclaveApp.redirectToSignUp());
e.preventDefault();
}}>{t("Sign up")}
)
) : (
{t("Already have an account?")}{" "}
{
runAsynchronously(hexclaveApp.redirectToSignIn());
e.preventDefault();
}}>{t("Sign in")}
)}
{(hasOAuthProviders || hasPasskey) && (
{hasOAuthProviders &&
}
{hasPasskey &&
}
)}
{enableSeparator &&
}
{project.config.credentialEnabled && project.config.magicLinkEnabled ? (
{t("Email")}
{t("Email & Password")}
{props.type === 'sign-up' ? : }
) : project.config.credentialEnabled ? (
props.type === 'sign-up' ?
:
) : project.config.magicLinkEnabled ? (
) : !(hasOAuthProviders || hasPasskey) ? (
// Only reachable on the sign-up page of a passkey-only project: the project is configured
// correctly, there is just no way to create an account with a passkey alone.
{t("New accounts can't be created with the sign-in methods enabled for this app. Sign in instead.")}
) : null}
{props.extraInfo && (
)}