import { Home } from "./components/home/Home";
import { Categories } from './components/categories/Categories'
import { Tabs } from "./components/tabs/Tabs";
import { BrowserRouter, Route, Redirect, Switch } from "react-router-dom";

function App() {
    return (
        <BrowserRouter>
            <Switch>
                <Route path="/home" component={Home} />
                <Route path="/categories" component={Categories} />
                <Redirect from="/" to="/home" />
            </Switch>
            <Tabs />
        </BrowserRouter>
    );
}

export default App;
