const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
let _pisell_materials_src_components_iconfont = require("@pisell/materials/src/components/iconfont");
_pisell_materials_src_components_iconfont = require_runtime.__toESM(_pisell_materials_src_components_iconfont);
//#region src/pro/Login2.0/steps/EmailAlreadyRegistered.tsx
/**
* 账号已注册错误页面（对应图2）
* 支持邮箱和手机号两种账号类型
*/
function EmailAlreadyRegistered({ flowData, onGoToLogin, onBack }) {
	const message = flowData.accountType === "email" ? _pisell_utils.locales.getText("pisell-register2-email-already-registered") : _pisell_utils.locales.getText("pisell-register2-phone-already-registered");
	return /* @__PURE__ */ react.default.createElement("div", { className: "register-step-container email-already-registered-page" }, /* @__PURE__ */ react.default.createElement("button", {
		className: "back-button-top",
		onClick: onBack,
		"aria-label": "Go back"
	}, /* @__PURE__ */ react.default.createElement(_pisell_materials_src_components_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ react.default.createElement("p", { className: "email-already-registered-message" }, message), /* @__PURE__ */ react.default.createElement("div", { className: "register-login-prompt" }, /* @__PURE__ */ react.default.createElement("span", { className: "prompt-text" }, _pisell_utils.locales.getText("pisell-register2-have-account"), " "), /* @__PURE__ */ react.default.createElement("button", {
		className: "login-link",
		onClick: onGoToLogin
	}, _pisell_utils.locales.getText("pisell-register2-login-link")))));
}
//#endregion
exports.default = EmailAlreadyRegistered;
