var reactInnertext;
var hasRequiredReactInnertext;
function requireReactInnertext() {
  if (hasRequiredReactInnertext) return reactInnertext;
  hasRequiredReactInnertext = 1;
  var hasProps = function(jsx) {
    return Object.prototype.hasOwnProperty.call(jsx, "props");
  };
  var reduceJsxToString = function(previous, current) {
    return previous + innerText(current);
  };
  var innerText = function(jsx) {
    if (jsx === null || typeof jsx === "boolean" || typeof jsx === "undefined") {
      return "";
    }
    if (typeof jsx === "number") {
      return jsx.toString();
    }
    if (typeof jsx === "string") {
      return jsx;
    }
    if (Array.isArray(jsx)) {
      return jsx.reduce(reduceJsxToString, "");
    }
    if (hasProps(jsx) && Object.prototype.hasOwnProperty.call(jsx.props, "children")) {
      return innerText(jsx.props.children);
    }
    return "";
  };
  innerText.default = innerText;
  reactInnertext = innerText;
  return reactInnertext;
}
export {
  requireReactInnertext as __require
};
//# sourceMappingURL=index.js.map
