const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_const = require("../../const.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _ant_design_icons = require("@ant-design/icons");
//#region src/components/eftposPay/component/step/index.tsx
var step_default = (props) => {
	const { status, warn, text, tip } = props;
	let txt = "";
	if ((status === require_const.StatusEnum.Loading || status === require_const.StatusEnum.Success || status === require_const.StatusEnum.Fail) && props[status]) txt = props[status];
	else txt = text;
	return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement("div", { className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status}` }, txt, status === require_const.StatusEnum.Success ? /* @__PURE__ */ react.default.createElement(_ant_design_icons.CheckCircleFilled, {
		color: "#1B945C",
		style: {
			color: "#1B945C",
			fontSize: "24px",
			verticalAlign: "middle",
			margin: "0 0 0 4px"
		}
	}) : null), status === require_const.StatusEnum.Loading && tip ? /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, tip) : null, status === require_const.StatusEnum.Warn && warn ? /* @__PURE__ */ react.default.createElement("div", { className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status}` }, warn) : null);
};
//#endregion
exports.default = step_default;
