import { Route, Routes } from "react-router-dom"; import "./App.css"; import { AuthApi } from "./api/AuthApi"; import { NotFoundRoute } from "./routes/NotFound"; import { BaseLoginPage } from "./widgets/BaseLoginpage"; import { LoginRoute } from "./routes/auth/LoginRoute"; import { OIDCCbRoute } from "./routes/auth/OIDCCbRoute"; import { useAtom } from "jotai"; import { BaseAuthenticatedPage } from "./widgets/BaseAuthenticatedPage"; import { PasswordForgottenRoute } from "./routes/auth/PasswordForgottenRoute"; /** * Core app */ function App() { const [signedIn] = useAtom(AuthApi.authStatus); return ( {signedIn ? ( } /> ) : ( }> } /> } /> } /> } /> )} ); } export default App;