import React, { Suspense } from "react"; import { Provider, connect } from "react-redux"; import { ConnectedRouter } from "connected-react-router"; import { Switch, Redirect, Route, withRouter } from "react-router-dom"; import { CustomRouter } from "./custom.router"; import LoginContainer from "../modules/login/login.container"; import DashBoardContainer from "../modules/dashboard/dashboard.container"; import { AppRoutes } from "./app.routes"; import MasterComponent from "../master/master.component"; const Routes = ({ store, history }) => { return ( Loading ...} > {AppRoutes.map(_routes => )} ); }; export default Routes;