/**
 * Created by geweimin on 17/7/10.
 */
import layoutConfig from '../pageContainer/layoutConfig';
import customLayoutConfig from '../pageContainer/customLayoutConfig';
const createLayout = (layoutType, global) => {
  if (global) {
    return layoutConfig.globalDef;
  }
  if (!layoutType) {
    return layoutConfig.default;
  }
  const layout = customLayoutConfig(layoutType) ? customLayoutConfig(layoutType) : layoutConfig[layoutType];
  return layout || layoutConfig.default;
}

export CoreLayout from './coreLayout';
export DetailTitle from './detailTitle';

export default createLayout;
