import React from "react";
import { locales } from "@pisell/utils";
import { PisellModal } from "@pisell/materials";
import "./index.less";
//#region src/components/eventBooking/components/Provider/OrderProductModal/index.tsx
const OrderProductModal = (props) => {
	const { open, onCancel, type = "cart" } = props;
	return /* @__PURE__ */ React.createElement(PisellModal.Information, {
		open,
		title: type === "cart" ? locales.getText("pisell2.event.event.full.title") : locales.getText("pisell2.event.capacity.limit.reached.title"),
		describe: type === "cart" ? locales.getText("pisell2.event.event.full.tip") : locales.getText("pisell2.event.capacity.limit.reached.tip"),
		okText: locales.getText("pisell2.event.event.full.ok"),
		cancelText: "",
		cancelVisible: false,
		closable: true,
		onCancel: () => onCancel(),
		onOk: () => onCancel(),
		zIndex: 1001
	});
};
//#endregion
export { OrderProductModal as default };
