import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig.js";
import { platformCpt } from "./components/index.js";
import { confirm, error, info, success, warn, warning } from "./components/functions/index.js";
import Information from "./components/Information/index.js";
import React, { useEffect } from "react";
//#region src/components/pisellModal/index.tsx
const PisellModal = (props) => {
	const { platform, headerDivider = true, footerDivider = true } = props;
	const config = usePisellConfig();
	const ModalCpt = platformCpt[platform || config.platform];
	useEffect(() => {
		document.body.id = "body";
	}, []);
	return /* @__PURE__ */ React.createElement(ModalCpt, _objectSpread2(_objectSpread2({}, props), {}, {
		headerDivider,
		footerDivider
	}));
};
PisellModal.confirm = confirm;
PisellModal.info = info;
PisellModal.error = error;
PisellModal.warn = warn;
PisellModal.warning = warning;
PisellModal.success = success;
PisellModal.Information = Information;
//#endregion
export { PisellModal as default };
