import { Component } from 'react'; import { inject, observer } from 'mobx-react'; import { RouterStore } from 'mobx-react-router'; import { UserStore } from 'src/stores.types'; import Import from '../../components/auth/Import'; interface IProps { actions: { user: UserStore; }; stores: { user: UserStore; router: RouterStore; }; } class ImportScreen extends Component { render() { const { actions, stores } = this.props; if (stores.user.isImportLegacyServicesCompleted) { stores.router.push(stores.user.inviteRoute); } return ( ); } } export default inject('stores', 'actions')(observer(ImportScreen));