'use strict';

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

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

var _AuthRolePage = require('../../components/pages/AuthRolePage');

var _AuthRolePage2 = _interopRequireDefault(_AuthRolePage);

var _prefs = require('../../actions/prefs');

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

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

const mapStateToProps = state => ({
  perms: (0, _reducers.getUserPerms)(state)
});

const mapDispatchToProps = {
  setAdminTab: _prefs.setAdminTab
};

exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_AuthRolePage2.default);