{"size": 680, "ext": "js", "max_stars_repo_path": "client/src/App.js", "max_stars_repo_name": "manziEric/phonebook", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/App.js", "max_issues_repo_name": "manziEric/phonebook", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/App.js", "max_forks_repo_name": "manziEric/phonebook", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.2, "max_line_length": 74, "alphanum_fraction": 0.625}
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import Navbar from "./components/navbar/Navbar";
import AddNewEntryPage from "./pages/AddNewEntryPage";
import EditEntryPage from "./pages/EditEntryPage";
import HomePage from "./pages/HomePage";
import "./App.css";

function App() {
  return (
    <div className="App">
      <Navbar />
      <Router>
        <Routes>
          <Route path="/" element={<HomePage />} />
          <Route path="/newentry" element={<AddNewEntryPage />} />
          <Route path="/editentry" element={<EditEntryPage />} />
        </Routes>
      </Router>
    </div>
  );
}

export default App;
