'use strict';

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

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

var _PermissionsInput = require('../../components/admin/PermissionsInput');

var _PermissionsInput2 = _interopRequireDefault(_PermissionsInput);

var _authz = require('../../actions/authz');

var _reducers = require('../../reducers');

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

var mapStateToProps = function mapStateToProps(state) {
  return {
    resourceNames: (0, _reducers.getAuthzResourceNames)(state)
  };
};

var mapDispatchToProps = {
  readPerms: _authz.readPerms
};

var ConnectedPermissionsInput = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_PermissionsInput2.default);

ConnectedPermissionsInput.propTypes = _PermissionsInput2.default.propTypes;

exports.default = ConnectedPermissionsInput;