try {
	let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
	n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "85829a2d-a54a-4cac-9a66-3f051969888e", e._sentryDebugIdIdentifier = "sentry-dbid-85829a2d-a54a-4cac-9a66-3f051969888e");
} catch (e) {}
import { t as ToastContextProvider } from "./ToastContextProvider-DmZQLSHH.js";
import { t as Modal } from "./Modal-DOC6JgPI.js";
import { Fragment, jsx } from "preact/jsx-runtime";
//#region src/components/ui/atoms/Modal/MaybeModal.tsx
/**
* Renders a modal or an inline div
* @returns {Modal|HTMLDivElement}
*/
var MaybeModal = ({ ariaLabel, children, inline = false, inset, onClose, showCloseButton, size }) => {
	return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(Modal, {
		onClose,
		ariaLabel,
		size,
		inset,
		showCloseButton,
		children: /* @__PURE__ */ jsx(ToastContextProvider, { children })
	});
};
//#endregion
export { MaybeModal as t };
