import useComponents from "../../../../../../hooks/useComponents.js";
import React from "react";
import { locales } from "@pisell/utils";
import "./index.less";
//#region src/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.tsx
const MaxParticipantsModule = ({ form, value, onChange, useSchedule, isAutoChange, onData }) => {
	const [MaxParticipantsCom] = useComponents({ components: ["MaxParticipantsCom"] });
	return /* @__PURE__ */ React.createElement("div", { className: "product-detail-card-module" }, /* @__PURE__ */ React.createElement("div", { className: "product-detail-card-title" }, locales.getText("pisell2.text.schedules.max-participants")), MaxParticipantsCom && /* @__PURE__ */ React.createElement(MaxParticipantsCom, {
		scheduleIds: useSchedule || [],
		value,
		onChange,
		componentType: "v1",
		onData,
		isAutoChange
	}));
};
//#endregion
export { MaxParticipantsModule as default };
