const require_runtime = require("../../../../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
let _pisell_materials = require("@pisell/materials");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.tsx
const CallToBook = (props) => {
	const { show, type, shop } = props;
	const message = (0, react.useMemo)(() => {
		if (type === "booking_closed") return null;
		if (type === "call_to_book" && shop.phone) return /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-sales-close-tip" }, "关闭", /* @__PURE__ */ React.createElement("a", { className: "pisell-lowcode-sales-close-tel" }, "+", shop.country_calling_code, " ", shop.phone));
		if (type === "email_to_book" && shop.contact_email) return /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-sales-close-tip" }, "4", /* @__PURE__ */ React.createElement("a", { className: "pisell-lowcode-sales-close-tel" }, shop.contact_email));
		return null;
	}, [type]);
	return show ? /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-sales-close" }, /* @__PURE__ */ React.createElement(_pisell_materials.Iconfont, { className: (0, classnames.default)("iconshangjia", "pisell-lowcode-sales-icon") }), /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-sales-close-tip" }, "6"), message) : null;
};
//#endregion
exports.default = CallToBook;
