text: import React from "react";
  import Home from "./pages/Home";
  import About from "./pages/About";
  import Team from "./pages/Team";
  import Error from "./pages/Error";
  import Navbar from "./components/Navbar";
  import Footer from "./components/Footer";
  import { Switch, Route } from "react-router-dom";
  const App = () => {
    return (
      <>
        <Navbar />
        <Switch>
          <Route exact path="/">
            <Home />
          </Route>
          <Route path="/about">
            <About />
          </Route>
          <Route path="/team">
            <Team />
          </Route>
          <Route path="*">
            <Error />
          </Route>
        </Switch>
        <Footer />
      </>
    );
  };
  
  export default App;
  