"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _immer = _interopRequireDefault(require("immer"));

var _default = function _default(type, callback) {
  return function (props) {
    var _type, _ref, _props;

    return _type = type(props), (_ref = (_props = props, callback(_props)), (0, _immer["default"])(_ref))(_type);
  };
};

exports["default"] = _default;
//# sourceMappingURL=_extendType.cjs.map