{magicLink &&
((credentials &&
[
"FORGOT_PASSWORD",
"SIGN_UP",
"SIGN_IN",
"MAGIC_LINK",
"EMAIL_OTP"
].includes(view as string)) ||
(emailOTP && view === "EMAIL_OTP")) && (
)}
{emailOTP &&
((credentials &&
[
"FORGOT_PASSWORD",
"SIGN_UP",
"SIGN_IN",
"MAGIC_LINK",
"EMAIL_OTP"
].includes(view as string)) ||
(magicLink &&
["SIGN_IN", "MAGIC_LINK"].includes(
view as string
))) && (
)}
)}
{view !== "RESET_PASSWORD" &&
view !== "EMAIL_VERIFICATION" &&
(social?.providers?.length ||
genericOAuth?.providers?.length ||
(view === "SIGN_IN" && passkey)) && (
<>
{(credentials || magicLink || emailOTP) && (
{(social?.providers?.length ||
genericOAuth?.providers?.length) && (
{social?.providers?.map((provider) => {
const socialProvider =
socialProviders.find(
(socialProvider) =>
socialProvider.provider ===
provider
)
if (!socialProvider) return null
return (
)
})}
{genericOAuth?.providers?.map(
(provider) => (
)
)}
)}
{passkey &&
[
"SIGN_IN",
"MAGIC_LINK",
"EMAIL_OTP",
"RECOVER_ACCOUNT",
"TWO_FACTOR",
"FORGOT_PASSWORD"
].includes(view as string) && (
)}
>
)}