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

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

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

import './style.scss';
import Home from './pages/Home';

function DemoProfileExample(): React.JSX.Element {
  return (
    <IonTabs className="demo-profile-example">
      <IonRouterOutlet>
        <Route exact path="/demo-profile-example/home">
          <Home />
        </Route>

        <Redirect exact path="/demo-profile-example" to="/demo-profile-example/home" />
      </IonRouterOutlet>

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

export default DemoProfileExample;
