"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _default = function _default(DecoratorParent, childComponent) {
  var componentDecorated = childComponent;

  if (typeof DecoratorParent === "function") {
    componentDecorated = DecoratorParent(childComponent);
  } else if (DecoratorParent) {
    componentDecorated = /*#__PURE__*/_react["default"].createElement(DecoratorParent, null, childComponent);
  }

  return componentDecorated;
};

exports["default"] = _default;