"use strict";

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

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

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

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

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

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

const mapStateToProps = state => ({
  roles: (0, _reducers.getAuthzRoles)(state)
});

const mapDispatchToProps = {
  readRoles: _authz.readRoles
};
const ConnectedRolesInput = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_RolesInput.default);
ConnectedRolesInput.propTypes = _RolesInput.default.propTypes;
var _default = ConnectedRolesInput;
exports.default = _default;