Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/common/hooks/useLazy",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function useLazy(t){const n=u(new Map);return a((({getInstance:a,pluginId:u})=>{if(!n.current.has(u)){const r=a(u),o=e((()=>r.then((e=>({default:()=>e?t({instance:e}):null})))));n.current.set(u,o)}const o=n.current.get(u);return r.default.createElement(o,null)}),[t])};var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("liferay!frontend-js-react-web$react"));const{lazy:e,useCallback:a,useRef:u}=r.default}}));
//# sourceMappingURL=useLazy.js.map