"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

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

var _FooterContainer = _interopRequireDefault(require("../../containers/sections/FooterContainer"));

var _Logo = _interopRequireDefault(require("../sections/Logo"));

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

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

const propTypes = {
  children: _propTypes.default.node
};
const contextTypes = {
  config: _propTypes.default.object,
  intl: _reactIntl.intlShape
};

function PublicPage(props, context) {
  const {
    children
  } = props;
  const {
    config,
    intl
  } = context;
  return _react.default.createElement("div", {
    className: _PublicPage.default.common
  }, _react.default.createElement("header", null, _react.default.createElement(_Logo.default, {
    config: config
  })), children, _react.default.createElement(_FooterContainer.default, {
    config: config,
    intl: intl
  }));
}

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