+ {!result && (
+
+
- {isValidFormat === false && (
-
{t("single.formatError")}
- )}
-
-
+ )}
+
{t("single.cardTitle")}
+
{t("single.cardDescription")}
+
+
+ setEmail(e.target.value)}
+ onKeyDown={(e) => e.key === "Enter" && handleValidate()}
+ className={`h-12 pr-10 text-base ${isValidFormat === false ? "border-red-500 focus-visible:ring-red-500" : isValidFormat === true ? "border-green-500 focus-visible:ring-green-500" : ""}`}
+ autoFocus
+ />
+ {email && (
+
+ )}
+
+
+
+ {isValidFormat === false && (
+
{t("single.formatError")}
+ )}
+ {!result && (
+
+ {[
+ t("validation.syntaxLabel"),
+ t("validation.domainLabel"),
+ t("validation.mxLabel"),
+ t("validation.mailboxLabel"),
+ t("validation.disposableLabel"),
+ t("validation.roleBasedLabel"),
+ ].map((label) => (
+
+
+ {label}
+
+ ))}
+
+ )}
+
{result && (