import React from 'react';
import EShopW from './eshopw';
import Um from './um';
export default function index(props) {
  // 要求每一个定制化的项目提供自己的唯一名称，用来区分不同项目特有的需求，默认为 eshopw
  var project = window.MParams && window.MParams.project ? window.MParams.project : 'eshopw';
  var showCot = props.showCot;

  var renderLayout = function renderLayout() {
    var layout = {
      eshopw: /*#__PURE__*/React.createElement(EShopW, {
        showCot: showCot
      }, props.children),
      um: /*#__PURE__*/React.createElement(Um, {
        showCot: showCot
      }, props.children)
    };
    return layout[project] || /*#__PURE__*/React.createElement(React.Fragment, null, props.children);
  };

  return /*#__PURE__*/React.createElement(React.Fragment, null, renderLayout());
}