/**
 * Created by baoyinghai on 10/24/16.
 */
import NotMatchType from '../modules/exception/NotMatch';
import ListView from '../modules/list';
import ListDetail from '../modules/detail';
import Info from '../modules/info';
import Process from '../modules/process';

import {
  PAGE_TYPE_LIST,
  PAGE_TYPE_DETAIL,
  PAGE_TYPE_CUSTOM,
  PAGE_TYPE_PROCESS,
  PAGE_TYPE_PROCESS_DETAIL,
  PAGE_TYPE_PROCESS_IMG,
  PAGE_TYPE_INFO,
  PAGE_TYPE_SUMMARY,
  PAGE_TYPE_SUMMARY_LIST
} from '../constant/dictActions';

export const templeteTypes = [PAGE_TYPE_LIST, PAGE_TYPE_DETAIL, PAGE_TYPE_INFO, PAGE_TYPE_SUMMARY, PAGE_TYPE_SUMMARY_LIST, PAGE_TYPE_PROCESS];

const defStr = 'default';
// console.log(NotMatchType);

export default {
  [PAGE_TYPE_LIST]: ListView,
  [PAGE_TYPE_DETAIL]: ListDetail,
  [PAGE_TYPE_SUMMARY]: ListDetail,
  [PAGE_TYPE_INFO]: Info,
  [defStr]: NotMatchType,
  [PAGE_TYPE_SUMMARY_LIST]: ListView,
  [PAGE_TYPE_PROCESS]: Process
};
