'use strict';

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

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

var _CreatePage = require('../../components/pages/CreatePage');

var _CreatePage2 = _interopRequireDefault(_CreatePage);

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

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

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

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