import { useMemo } from "react";
import { Iconfont } from "@pisell/materials";
import classNames from "classnames";
import "./index.less";
//#region src/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.tsx
const CallToBook = (props) => {
	const { show, type, shop } = props;
	const message = 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(Iconfont, { className: classNames("iconshangjia", "pisell-lowcode-sales-icon") }), /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-sales-close-tip" }, "6"), message) : null;
};
//#endregion
export { CallToBook as default };
