const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_materials = require("@pisell/materials");
require("./index.less");
//#region src/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.tsx
const GuestOptionsModal = (props) => {
	const { open, onCancel, options, onClick, holderItem } = props;
	const lists = (0, react.useMemo)(() => {
		let _options = [...options];
		if (!(holderItem === null || holderItem === void 0 ? void 0 : holderItem.isGuest)) _options = _options.filter((option) => option.key !== "remove");
		return _options;
	}, [options]);
	return /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellModal, {
		open,
		platform: "h5",
		closable: true,
		bodyStyle: { padding: "0 24px" },
		destroyOnClose: true,
		footer: null,
		onCancel,
		mobileModalHeight: "auto",
		className: "guest-option-modal",
		headerDivider: false
	}, /* @__PURE__ */ react.default.createElement("div", { className: "guest-options-wrap" }, lists.map((item) => {
		return /* @__PURE__ */ react.default.createElement("div", {
			key: item.key,
			className: `guest-options-wrap-item ${item.key === "remove" ? "remove" : ""}`,
			onClick: () => onClick(item)
		}, item.label);
	})));
};
//#endregion
exports.default = GuestOptionsModal;
