'use strict';

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

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

var _ProtectedPage = require('../../components/pages/ProtectedPage');

var _ProtectedPage2 = _interopRequireDefault(_ProtectedPage);

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

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

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

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