@itwin/presentation-components
Version:
React components based on iTwin.js Presentation library
19 lines • 869 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Core
*/
import { createContext } from "react";
/**
* Provides a portal target for components.
* @public
* @deprecated in 5.6. No longer needed.
*/
export function PortalTargetContextProvider({ portalTarget, children }) {
return _jsx(portalTargetContext.Provider, { value: { portalTarget }, children: children });
}
const portalTargetContext = createContext({ portalTarget: null });
//# sourceMappingURL=PortalTargetContext.js.map