/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
import { getSnapshot, subscribe } from "./modalStore.js";
import { ManagedModal } from "./ManagedModal.js";
import { useSyncExternalStore } from "react";
import { jsx } from "react/jsx-runtime";
//#region src/components/client/Modal/ModalPortal.tsx
const ModalPortal = () => {
	const slot = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
	if (!slot) return null;
	return /* @__PURE__ */ jsx(ManagedModal, { slot }, slot.slotId);
};
ModalPortal.displayName = "ModalPortal";
//#endregion
export { ModalPortal };
