import { statusList, statusMessage } from "../../../../../status.js";
import dayjs from "dayjs";
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
import "./index.less";
//#region src/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.tsx
dayjs.extend(isSameOrBefore);
const Status = (props) => {
	const { type = "call_to_book", style } = props;
	return /* @__PURE__ */ React.createElement("div", {
		className: "event-calendar-status",
		style
	}, statusList.map((i) => {
		return /* @__PURE__ */ React.createElement("div", {
			className: "item",
			key: i.status
		}, /* @__PURE__ */ React.createElement("div", {
			style: {
				height: i.status == 0 ? "20px" : "4px",
				background: i.color
			},
			className: "item-icon"
		}), /* @__PURE__ */ React.createElement("span", { className: "item-text" }, i.status === 2 ? statusMessage(type) : i.text));
	}));
};
//#endregion
export { Status as default };
