import { jsx } from "react/jsx-runtime";
import { $ as $96b38030c423d352$export$78efe591171d7d45 } from "../../PortalProvider---wyKpMr.js";
/**
 * Component that allows changing the default target for transient components like `Menu`, `Popover`, etc.
 *
 * @component
 * @param {Object} props - Component props.
 * @param {JSX.Element|null} [props.portalElement] - Element to use as the portal container.
 *
 * @returns {JSX.Element} The Menu component.
 *
 * @example
 * <PortalProvider>
 * 	...
 * </PortalProvider>
 *
 * @preserve
 */
const PortalProvider = ({ children, portalElement }) => {
  return /* @__PURE__ */ jsx($96b38030c423d352$export$78efe591171d7d45, { getContainer: () => portalElement, children });
};
export {
  PortalProvider
};
