Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.141/page_editor/core/hooks/usePlugins",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function usePlugins(){const r=u(new Map),t=e((e=>r.current.get(e)||Promise.resolve(null)),[]),n=e(((e,t,n)=>(r.current.has(e)||r.current.set(e,t.then((e=>new e(n))).catch((e=>null))),r.current.get(e))),[]);return{getInstance:t,register:n}};var n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react"));const{useCallback:e,useRef:u}=n.default}}));
//# sourceMappingURL=usePlugins.js.map