import { StatusEnum } from "../../const.js";
import React from "react";
import { CheckCircleFilled } from "@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 === StatusEnum.Loading || status === StatusEnum.Success || status === StatusEnum.Fail) && props[status]) txt = props[status];
	else txt = text;
	return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status}` }, txt, status === StatusEnum.Success ? /* @__PURE__ */ React.createElement(CheckCircleFilled, {
		color: "#1B945C",
		style: {
			color: "#1B945C",
			fontSize: "24px",
			verticalAlign: "middle",
			margin: "0 0 0 4px"
		}
	}) : null), status === StatusEnum.Loading && tip ? /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, tip) : null, status === StatusEnum.Warn && warn ? /* @__PURE__ */ React.createElement("div", { className: `pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-${status}` }, warn) : null);
};
//#endregion
export { step_default as default };
