"use client";
import { DayView } from "./index68.js";
import { MonthView } from "./index69.js";
import { WeekView } from "./index70.js";
import { useCalendarContext } from "./index76.js";
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/components/molecules/data/Calendar/CalendarContent.tsx
function CalendarContent({ view: viewProp, onEventClick, onMoreEventsClick, onEventCopy, onEventDelete, onEventEdit, startHour = 0, endHour = 24, maxEventsPerCell = 2 }) {
	const ctx = useCalendarContext();
	const view = viewProp ?? ctx.view;
	const { idPrefix } = ctx;
	return /* @__PURE__ */ jsxs("div", {
		"data-slot": "calendar-content",
		id: `${idPrefix}-tabpanel-${view}`,
		role: "tabpanel",
		"aria-labelledby": `${idPrefix}-tab-${view}`,
		children: [
			view === "month" && /* @__PURE__ */ jsx(MonthView, {
				onEventClick,
				onMoreEventsClick,
				maxEventsPerCell
			}),
			view === "week" && /* @__PURE__ */ jsx(WeekView, {
				startHour,
				endHour,
				onEventClick
			}),
			view === "day" && /* @__PURE__ */ jsx(DayView, {
				startHour,
				endHour,
				onEventClick,
				onEventCopy,
				onEventDelete,
				onEventEdit
			})
		]
	});
}
CalendarContent.displayName = "CalendarContent";
//#endregion
export { CalendarContent };

//# sourceMappingURL=index71.js.map