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

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

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

function DemoReactItemList() {
  return (
    <IonTabs>
      <IonRouterOutlet>
        <Route exact path="/demo-react-item-list/home">
          <Home />
        </Route>
        <Route exact path="/demo-react-item-list/movies">
          <Movies />
        </Route>

        <Redirect exact path="/demo-react-item-list" to="/demo-react-item-list/home" />
      </IonRouterOutlet>

      {/*
      <IonTabBar slot="bottom">
        <IonTabButton tab="tab1" href="/demo-react-item-list/tab1">
          <IonIcon icon={cloudOutline} />
          <IonLabel>Dashboard</IonLabel>
        </IonTabButton>
        <IonTabButton tab="tab2" href="/demo-react-item-list/tab2">
          <IonIcon icon={searchOutline} />
          <IonLabel>Search</IonLabel>
        </IonTabButton>
      </IonTabBar>
      */}
    </IonTabs>
  );
}

export default DemoReactItemList;
