import { Route, Routes } from "react-router-dom";
import "./App.css";
import { AuthApi } from "./api/AuthApi";
import { NotFoundRoute } from "./routes/NotFound";

function App() {
  return (
    <Routes>
      {AuthApi.SignedIn ? (
        <Route path="*" element={<p>signed in</p>} />
      ) : (
        <Route path="*" element={<NotFoundRoute />} />
      )}
    </Routes>
  );
}

export default App;
