"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o=function(e){return e?Object.fromEntries(Object.entries(e).map((function(e){var r=n.default(e,2),t=r[0],o=r[1];return[t,"function"==typeof o?function(){for(var e,r,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return null===(e=window.xprops)||void 0===e||null===(r=e[t])||void 0===r?void 0:r.call.apply(r,[e].concat(o))}:o]}))):e};exports.useXProps=function(){var e=r.useState((function(){return o(window.xprops)})),t=n.default(e,2),u=t[0],i=t[1];return r.useEffect((function(){window.xpropsOnProps=function(e){i(o(e))}}),[]),u};
//# sourceMappingURL=useXProps.js.map
