'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _reactRedux = require('../../../react-redux');

var _stateHelper = require('../../../util/stateHelper');

var _stateHelper2 = _interopRequireDefault(_stateHelper);

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

exports.default = function (ComposedComponent) {
  var mapStateToProps = function mapStateToProps() {
    return { disableDraggingOverride: _stateHelper2.default.editingQuizEntry() };
  };

  return (0, _reactRedux.connect)(mapStateToProps)(ComposedComponent);
};