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

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

import Home from './pages/Home';

function DemoReactDrawingCanvas() {
  return (
    <IonTabs>
      <IonRouterOutlet>
        <Route exact path="/demo-react-drawing-canvas/home">
          <Home />
        </Route>

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

export default DemoReactDrawingCanvas;
