import {
Route,
RouterProvider,
createBrowserRouter,
createRoutesFromElements,
} from "react-router-dom";
import { AuthApi } from "./api/AuthApi";
import { ServerApi } from "./api/ServerApi";
import { LoginRoute } from "./routes/LoginRoute";
import { NotFoundRoute } from "./routes/NotFoundRoute";
import { HomeRoute } from "./routes/HomeRoute";
import { BaseAuthenticatedPage } from "./widgets/BaseAuthenticatedPage";
export function App() {
if (!AuthApi.SignedIn && !ServerApi.Config.auth_disabled)
return ;
const router = createBrowserRouter(
createRoutesFromElements(
}>
} />
} />
)
);
return ;
}