'use strict';

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

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

var _RolesInput = require('../../components/admin/RolesInput');

var _RolesInput2 = _interopRequireDefault(_RolesInput);

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 {
    roles: (0, _reducers.getAuthzRoles)(state)
  };
};

var mapDispatchToProps = {
  readRoles: _authz.readRoles
};

var ConnectedRolesInput = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_RolesInput2.default);

ConnectedRolesInput.propTypes = _RolesInput2.default.propTypes;

exports.default = ConnectedRolesInput;