import React, { Component } from 'react'; import { Redirect, withRouter } from 'react-router-dom'; import { Trans } from '@lingui/macro'; import { withRootDialog } from '../contexts/RootDialog'; class NotifyAndRedirect extends Component { constructor (props) { super(props); const { setRootDialogMessage, location } = this.props; setRootDialogMessage({ title: '404', bodyText: ( Cannot find route {` ${location.pathname}`} . ), variant: 'warning' }); } render () { const { to, push, from, exact, strict, sensitive } = this.props; return ( ); } } export { NotifyAndRedirect as _NotifyAndRedirect }; export default withRootDialog(withRouter(NotifyAndRedirect));