import { lazy, Suspense } from "react"; import { createBrowserRouter, createRoutesFromElements, Navigate, Outlet, Route, RouterProvider } from "react-router-dom"; import { NavigationBridge } from "./shell/navigation-bridge"; import { RequireAuth } from "./auth/require-auth"; import { LoginPage } from "./auth/login-page"; import { AppShell } from "./shell/app-shell"; import { ObjectsPage } from "./objects/objects-page"; import { ObjectDetail } from "./objects/object-detail"; import { SearchPage } from "./search/search-page"; import { SelectSearchPrompt } from "./search/select-search-prompt"; import { VocabulariesPage } from "./vocab/vocabularies-page"; import { VocabularyTerms } from "./vocab/vocabulary-terms"; import { SelectVocabularyPrompt } from "./vocab/select-vocabulary-prompt"; import { AuthoritiesPage } from "./authorities/authorities-page"; import { FormSkeleton, ListSkeleton } from "@/components/ui/skeletons"; const ObjectNewPage = lazy(() => import("./objects/object-new-page").then((m) => ({ default: m.ObjectNewPage })), ); const ObjectEditForm = lazy(() => import("./objects/object-edit-form").then((m) => ({ default: m.ObjectEditForm })), ); const FieldsPage = lazy(() => import("./fields/fields-page").then((m) => ({ default: m.FieldsPage })), ); function RootLayout() { return ( <> ); } const router = createBrowserRouter( createRoutesFromElements( }> } /> }> }> }> } /> }> } /> }> } /> }> } /> } /> }> } /> } /> } /> } /> }> } /> } /> } /> , ), ); export function App() { return ; }