import { hot } from 'react-hot-loader/root'; import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { History } from 'history'; import { Store } from 'app/reducers'; import AuthFlowRoute from 'app/containers/AuthFlowRoute'; import RootPage from 'app/pages/root/RootPage'; import { ComponentLoader } from 'app/components/ui/loader'; import ContextProvider from './ContextProvider'; const SuccessOauthPage = React.lazy(() => import( /* webpackChunkName: "page-oauth-success" */ 'app/pages/auth/SuccessOauthPage' ), ); const App = ({ store, history }: { store: Store; history: History }) => ( }> null} /> ); export default hot(App);