"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _setupHeader = _interopRequireDefault(require("../../../organism/setup-header"));
var _provider = _interopRequireDefault(require("../../../atom/provider"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const createLayout = Template => {
  const Layout = props => {
    const {
      header
    } = props;
    return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
      className: _style.default.header
    }, /*#__PURE__*/_react.default.createElement(_setupHeader.default, header)), /*#__PURE__*/_react.default.createElement("div", {
      className: _style.default.contentWrapper
    }, /*#__PURE__*/_react.default.createElement(Template, props)));
  };
  Layout.propTypes = process.env.NODE_ENV !== "production" ? {
    header: _propTypes.default.shape(_setupHeader.default.propTypes)
  } : {};
  Layout.contextTypes = {
    skin: _provider.default.childContextTypes.skin,
    translate: _provider.default.childContextTypes.translate
  };
  return Layout;
};
var _default = exports.default = createLayout;
//# sourceMappingURL=index.js.map