/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b04eed0 | Cube Dev Team */
import { createContext, useContext } from "react";

//#region src/components/portal/PortalProvider.ts
const PortalContext = createContext(null);
/**
* @private
* @internal Don't even try to use it
*/
function usePortalContext() {
	return { root: useContext(PortalContext) };
}
/**
* @private
* @internal Don't even try to use it
*/
const PortalProvider = PortalContext.Provider;

//#endregion
export { PortalProvider, usePortalContext };
//# sourceMappingURL=PortalProvider.js.map