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