+
-
-
-
- ${
- options.forgetPassword
- ? `
-
- Forgot your password?
-
- `
- : ``
- }
-
+
+
+
+ ${
+ options.forgetPassword
+ ? `
+ Forgot your password?
+ `
+ : ""
+ }
+
-
-
+
setPassword(e.target.value)}
+ />
+
- ${
- options.rememberMe
- ? `
- {
- setRememberMe(!rememberMe);
- }}
- />
-
-
- `
- : ""
- }
- `
+ ${
+ options.rememberMe
+ ? `
+ {
+ setRememberMe(!rememberMe);
+ }}
+ />
+
+
`
+ : ""
+ }`
: ""
}
- ${
+ ${
options.magicLink
- ? `
-
-
- {
- setEmail(e.target.value);
- }}
- value={email}
- />
-
-
- `
+ ? `
+
+ {
+ setEmail(e.target.value);
+ }}
+ value={email}
+ />
+
+
`
: ""
}
- ${
+ ${
options.email
- ? `
-
- `
+ ? ``
: ""
}
- ${
+ ${
options.passkey
- ? `
-
- `
+ ? ``
: ""
}
- ${
- options.socialProviders.length > 0
- ? ` 0
+ ? `
3
- ? "w-full gap-2 flex items-center justify-between flex-wrap"
- : "w-full gap-2 flex items-center justify-between flex-col"
- },
- )}
- >
- ${Object.keys(socialProviders).map((provider) => {
- if (options.socialProviders.includes(provider)) {
- const { stringIcon } =
- socialProviders[provider as keyof typeof socialProviders];
- return ``;
+ ? '"justify-between flex-wrap"'
+ : '"justify-between flex-col"'
}
- return "";
- })}
-
`
+ )}>
+ ${options.socialProviders
+ .map((provider: string) => {
+ const icon =
+ socialProviders[provider as keyof typeof socialProviders]
+ ?.stringIcon || "";
+ return `
`;
+ })
+ .join("")}
+
`
: ""
}
-
-