'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _Header = require('../sections/Header');

var _Header2 = _interopRequireDefault(_Header);

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

var propTypes = {
  username: _react.PropTypes.string.isRequired,
  children: _react.PropTypes.node
};

function ProtectedPage(props) {
  var username = props.username,
      children = props.children;


  return _react2.default.createElement(
    'div',
    null,
    _react2.default.createElement(_Header2.default, {
      username: username
    }),
    children
  );
}

ProtectedPage.propTypes = propTypes;