import { IonIcon, IonLabel, IonRouterOutlet, IonTabBar, IonTabButton, IonTabs } from '@ionic/react';

import { cloudOutline, searchOutline } from 'ionicons/icons';
import { Route, Redirect } from 'react-router';

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

import Home from './pages/Home';
import ViewMessage from './pages/ViewMessage';

import './theme/variables.scss';

function DemoStorageExample() {
  return (
    <IonTabs className="demo-storage-example">
      <IonRouterOutlet>
        <Route path="/demo-storage-example/home" exact={true}>
          <Home />
        </Route>
        <Route path="/demo-storage-example/message/:id">
          <ViewMessage />
        </Route>

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

export default DemoStorageExample;
