import React, { useState } from "react"; import { EmailSettings } from "../utils/email"; import EmailInput from "./"; const Template = ({ allowDomainPunycode, allowLocalPartPunycode, allowDomainIp, allowStrictLocalPart, allowSpaces, allowName, allowLocalDomainName, ...rest }) => { const [emailValue, setEmailValue] = useState(""); const onChangeHandler = (value) => { setEmailValue(value); }; const settings = EmailSettings.parse({ allowDomainPunycode, allowLocalPartPunycode, allowDomainIp, allowStrictLocalPart, allowSpaces, allowName, allowLocalDomainName, }); return (