import r from"@babel/runtime/helpers/slicedToArray";import{useState as n,useEffect as o}from"react";var t=function(n){return n?Object.fromEntries(Object.entries(n).map((function(n){var o=r(n,2),t=o[0],e=o[1];return[t,"function"==typeof e?function(){for(var r,n,o=arguments.length,e=new Array(o),i=0;i<o;i++)e[i]=arguments[i];return null===(r=window.xprops)||void 0===r||null===(n=r[t])||void 0===n?void 0:n.call.apply(n,[r].concat(e))}:e]}))):n};function e(){var e=n((function(){return t(window.xprops)})),i=r(e,2),u=i[0],c=i[1];return o((function(){window.xpropsOnProps=function(r){c(t(r))}}),[]),u}export{e as useXProps};
//# sourceMappingURL=useXProps.js.map
