import type { Ark } from "@lume/ark"; import type { Interests, Metadata, Settings } from "@lume/types"; import { Spinner } from "@lume/ui"; import type { QueryClient } from "@tanstack/react-query"; import { Outlet, createRootRouteWithContext } from "@tanstack/react-router"; import type { Platform } from "@tauri-apps/plugin-os"; import type { Descendant } from "slate"; type EditorElement = { type: string; children: Descendant[]; eventId?: string; }; interface RouterContext { // System ark: Ark; queryClient: QueryClient; // App info platform?: Platform; locale?: string; // Settings settings?: Settings; interests?: Interests; // Profile accounts?: string[]; profile?: Metadata; isNewUser?: boolean; // Editor initialValue?: EditorElement[]; } export const Route = createRootRouteWithContext()({ component: () => , pendingComponent: Pending, wrapInSuspense: true, }); function Pending() { return (
); }