GeneIT/geneit_app/src/App.tsx
2023-06-06 16:39:47 +02:00

19 lines
404 B
TypeScript

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;