const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_usePrefix = require("../../../../hooks/usePrefix.js");
const require_const = require("../../const.js");
let react = require("react");
react = require_runtime.__toESM(react);
require("./index.less");
//#region src/components/eftposPay/component/header/index.tsx
const Icon = ({ status }) => {
	const prefix = require_usePrefix.default();
	if (status === require_const.StatusEnum.Loading) return /* @__PURE__ */ react.default.createElement("div", {
		style: { backgroundImage: `url(${prefix}/loading.png)` },
		className: "pisell-lowcode__eft-pay-img pisell-lowcode__eft-pay-load"
	});
	if (status === require_const.StatusEnum.Success) return /* @__PURE__ */ react.default.createElement("div", {
		style: { backgroundImage: `url(${prefix}/success.png)` },
		className: "pisell-lowcode__eft-pay-img "
	});
	if (status === require_const.StatusEnum.Fail) return /* @__PURE__ */ react.default.createElement("div", {
		style: { backgroundImage: `url(${prefix}/error.png)` },
		className: "pisell-lowcode__eft-pay-img "
	});
	if (status === require_const.StatusEnum.Warn) return /* @__PURE__ */ react.default.createElement("div", {
		style: { backgroundImage: `url(${prefix}/warn.png)` },
		className: "pisell-lowcode__eft-pay-img "
	});
	if (status === require_const.StatusEnum.Question) return /* @__PURE__ */ react.default.createElement("div", {
		style: { backgroundImage: `url(${prefix}/question.png)` },
		className: "pisell-lowcode__eft-pay-img "
	});
	return null;
};
var header_default = ({ status, title = "", subTitle, children }) => /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__eft-pay-icon" }, /* @__PURE__ */ react.default.createElement(Icon, { status }), children), title ? /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__eft-pay-title" }, title) : null, subTitle ? /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__eft-pay-sub-title" }, subTitle) : null);
//#endregion
exports.default = header_default;
