Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / applications / drive / src / app / containers / NoAccessContainer.tsx
blob095537f48f462f1858838131ee12e32c45d8ad62
1 import type { RouteComponentProps } from 'react-router-dom';
2 import { Redirect, Route, Switch } from 'react-router-dom';
4 import { NoAccessView } from '../components/sections/Drive/NoAccessView';
6 const NoAccessContainer = ({ match }: RouteComponentProps) => {
7     return (
8         <Switch>
9             <Route path={match.url} exact component={NoAccessView} />
10             <Redirect to="/" />
11         </Switch>
12     );
15 export default NoAccessContainer;