'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactIntl = require('react-intl');

var _Footer = require('../sections/Footer');

var _Footer2 = _interopRequireDefault(_Footer);

var _Logo = require('../sections/Logo');

var _Logo2 = _interopRequireDefault(_Logo);

var _PublicPage = require('../../../styles/cspace-ui/PublicPage.css');

var _PublicPage2 = _interopRequireDefault(_PublicPage);

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

const propTypes = {
  children: _propTypes2.default.node
};

const contextTypes = {
  config: _propTypes2.default.object,
  intl: _reactIntl.intlShape
};

function PublicPage(props, context) {
  const children = props.children;
  const config = context.config,
        intl = context.intl;


  return _react2.default.createElement(
    'div',
    { className: _PublicPage2.default.common },
    _react2.default.createElement(
      'header',
      null,
      _react2.default.createElement(_Logo2.default, { config: config })
    ),
    children,
    _react2.default.createElement(_Footer2.default, { config: config, intl: intl })
  );
}

PublicPage.propTypes = propTypes;
PublicPage.contextTypes = contextTypes;