UNPKG

ab-test-jsx

Version:
2 lines (1 loc) 523 B
"use strict";var t=require("react"),e=require("./ABTestsContext-887d4c4d.js"),r=require("./react-utils.js");function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}exports.withABTests=function(s){var a=t.memo((function(r){var a=t.useContext(e.ABTestsContext);return t.createElement(s,n({},r,{abTests:a}))}));return a.displayName="withABTests(".concat(r.nameOf(s),")"),a};