const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_icon_es_XClose = require("@pisell/icon/es/XClose");
_pisell_icon_es_XClose = require_runtime.__toESM(_pisell_icon_es_XClose);
require("./titlebar.less");
let _ant_design_icons_LeftOutlined = require("@ant-design/icons/LeftOutlined");
_ant_design_icons_LeftOutlined = require_runtime.__toESM(_ant_design_icons_LeftOutlined);
//#region src/components/eftposPay/component/header/titlebar.tsx
var EPopupTitleBarVariantType = /* @__PURE__ */ function(EPopupTitleBarVariantType) {
	EPopupTitleBarVariantType["BackTitleClose"] = "back-title-cancel";
	EPopupTitleBarVariantType["LeftTitleClose"] = "left-title-close";
	return EPopupTitleBarVariantType;
}(EPopupTitleBarVariantType || {});
var titlebar_default = ({ type = EPopupTitleBarVariantType.LeftTitleClose, children, onBack, onClose }) => /* @__PURE__ */ react.default.createElement("div", {
	className: "pisell-lowcode__eft-pay-header",
	style: type === EPopupTitleBarVariantType.LeftTitleClose ? { justifyContent: "space-between" } : type === EPopupTitleBarVariantType.BackTitleClose ? { justifyContent: "space-between" } : {}
}, type === EPopupTitleBarVariantType.BackTitleClose ? /* @__PURE__ */ react.default.createElement(_ant_design_icons_LeftOutlined.default, {
	style: { fontSize: "24px" },
	onClick: onBack
}) : null, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode__eft-pay-header-title" }, children), /* @__PURE__ */ react.default.createElement(_pisell_icon_es_XClose.default, {
	size: 20,
	style: { fontSize: "24px" },
	onClick: onClose
}));
//#endregion
exports.default = titlebar_default;
