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

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

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

function DemoReactAddToCart() {
  return (
    <IonTabs className="demo-react-add-to-cart">
      <IonRouterOutlet>
        {/*
        <Route exact path="/demo-react-add-to-cart/tab1">
          <Tab1 />
        </Route>
        <Route exact path="/demo-react-add-to-cart/tab2">
          <Tab2 />
        </Route>
        */}

        <Route exact path="/demo-react-add-to-cart/home">
          <Home />
        </Route>

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

export default DemoReactAddToCart;
