import { Route, Redirect } from 'react-router';
//
import Quote from './AppPages/Quote';
import Saved from './AppPages/Saved';
import Home from './AppPages/Home';
//
const DemoQuoteApp = () => {
  return (
    <>
      <Route path="/demo-quote-app/home" exact={true}>
        <Home />
      </Route>

      <Route path="/demo-quote-app/quote/:id" exact={true}>
        <Quote />
      </Route>

      <Route path="/demo-quote-app/saved" exact={true}>
        <Saved />
      </Route>

      <Redirect path="/demo-quote-app" exact={true} to="/demo-quote-app/home" />
    </>
  );
};

export default DemoQuoteApp;
