import React from 'react';
import PropTypes from 'prop-types';
import Header from '../../../organism/setup-header';
import Provider from '../../../atom/provider';
import style from './style.css';
const createLayout = Template => {
  const Layout = props => {
    const {
      header
    } = props;
    return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
      className: style.header
    }, /*#__PURE__*/React.createElement(Header, header)), /*#__PURE__*/React.createElement("div", {
      className: style.contentWrapper
    }, /*#__PURE__*/React.createElement(Template, props)));
  };
  Layout.propTypes = process.env.NODE_ENV !== "production" ? {
    header: PropTypes.shape(Header.propTypes)
  } : {};
  Layout.contextTypes = {
    skin: Provider.childContextTypes.skin,
    translate: Provider.childContextTypes.translate
  };
  return Layout;
};
export default createLayout;
//# sourceMappingURL=index.js.map