Liferay.Loader.define("data-engine-js-components-web@1.0.112/js/core/hooks/useResizeObserver.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,r){window;Object.defineProperty(t,"__esModule",{value:!0}),t.useResizeObserver=function useResizeObserver(e){const[t,r]=(0,n.useState)({});return(0,n.useEffect)((()=>{let t;if("ResizeObserver"in window)return t=new ResizeObserver((e=>{const{bottom:t,height:n,left:s,right:o,top:i,width:c}=e[0].contentRect;r({bottom:t,height:n,left:s,right:o,top:i,width:c})})),e.current&&t.observe(e.current),()=>t.disconnect()}),[e]),t};var n=r("liferay!frontend-js-react-web$react")}));
//# sourceMappingURL=useResizeObserver.es.js.map