import React from "react";
import { locales } from "@pisell/utils";
import IconFont from "@pisell/materials/src/components/iconfont";
//#region src/pro/Login2.0/steps/WaitEmailLink.tsx
/**
* 等待邮件链接验证页面（对应图1）
*/
function WaitEmailLink({ flowData, onResend, onBack, onEditEmail, countdown = 0, verificationMethod }) {
	const canResend = countdown === 0;
	const displayEmail = typeof flowData.account === "string" ? flowData.account : "";
	return /* @__PURE__ */ React.createElement("div", { className: "register-step-container" }, onBack && /* @__PURE__ */ React.createElement("button", {
		className: "back-button-top",
		onClick: onBack,
		"aria-label": "Go back"
	}, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-arrow-left" })), /* @__PURE__ */ React.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ React.createElement("div", { className: "register-step-title-verify-email" }, locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ React.createElement("div", { className: "register-step-desc-verify-email" }, locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ React.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ React.createElement("span", { className: "email-text" }, displayEmail), onEditEmail && /* @__PURE__ */ React.createElement("button", {
		className: "edit-email-btn",
		onClick: onEditEmail,
		"aria-label": "Edit email"
	}, /* @__PURE__ */ React.createElement(IconFont, {
		type: "pisell2-edit-05",
		style: {
			fontSize: "20px",
			color: "#7F56D9"
		}
	}))), /* @__PURE__ */ React.createElement("div", { className: "register-resend-section" }, /* @__PURE__ */ React.createElement("span", { className: "resend-text" }, locales.getText("pisell-register2-no-link-received"), " "), /* @__PURE__ */ React.createElement("button", {
		className: "resend-link",
		onClick: onResend,
		disabled: !canResend
	}, locales.getText("pisell-common-resend"), " ", countdown > 0 && `(${countdown} s)`))));
}
//#endregion
export { WaitEmailLink as default };
