import { IonRouterOutlet, IonTabs } from '@ionic/react';

import { Route, Redirect } from 'react-router';

import Home from './pages/Home';

function Demo2FaExample() {
  return (
    <IonTabs className="demo-2fa-example">
      <IonRouterOutlet>
        <Route exact path="/demo-2fa-example/home">
          <Home />
        </Route>

        <Redirect exact path="/demo-2fa-example" to="/demo-2fa-example/home" />
      </IonRouterOutlet>
    </IonTabs>
  );
}

export default Demo2FaExample;
