"use client"; import * as OneTimePasswordField from "@radix-ui/react-one-time-password-field"; import { ButtonPrimary } from "components/Buttons"; import { Input } from "components/Input"; import { DotLoader } from "components/utils/DotLoader"; import { theme } from "tailwind.config"; export const EmailInput = (props: { action: React.ReactNode; autoFocus?: boolean; large?: boolean; value: string; onChange: (val: string) => void; disabled?: boolean; loading?: boolean; }) => { return (
props.onChange(e.target.value)} />
{props.loading ? : props.action}
); }; export const EmailConfirm = (props: { emailValue: string; autoFocus?: boolean; loading?: boolean; onSubmit: (code: string) => void; onBack: () => void; }) => { let inputClassName = `input-with-border text-2xl w-8 h-12 text-center ${props.loading ? "bg-border-light! text-tertiary!" : ""}`; return (

Confirm your email

Enter the code sent to
{props.emailValue}
{ props.onSubmit(value); }} >
); };