
import RootView from '../view/monitor';
import Duty from '../view/monitor/duty';
import Situation from '../view/biz/duty/situation';
import Regulate from '../view/monitor/regulate';
import Bills from '../view/biz/regulate/bills';
import RootBizView from './../view/biz/index';
import EmptyPage from './../view/common/emptyPage/EmptyPage';

const Routes = {
  main: RootView,
  duty: Duty,
  situation: Situation,
  regulate: Regulate,
  bills: Bills
};
export const businessRouts = [
  { path: 'situation',group: 'biz',component: Situation, childRoutes: [] },
  { path: 'bills',group: 'biz',component: Bills, childRoutes: [] }
];
const pageCompontent = key => {
  return Routes[key] || EmptyPage;
};

export {
  RootView,
  RootBizView
};

export default pageCompontent;
