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

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

// import Tab1 from './AppPages/Tab1';
// import Tab2 from './AppPages/Tab2';

import './theme/variables.scss';
import Home from './pages/Home';
import Add from './pages/Add';

function DemoReactNotes() {
  return (
    <IonTabs className="demo-react-notes">
      <IonRouterOutlet>
        <Route exact path="/demo-react-notes/home">
          <Home />
        </Route>
        <Route exact path="/demo-react-notes/add">
          <Add />
        </Route>

        <Redirect exact path="/demo-react-notes" to="/demo-react-notes/home" />
      </IonRouterOutlet>
    </IonTabs>
  );
}

export default DemoReactNotes;
