This repository has been archived on 2026-01-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Acad-IA/src/routes/__root.tsx

33 lines
819 B
TypeScript

import { Outlet, createRootRouteWithContext } from '@tanstack/react-router'
import type { SupabaseAuthState } from '@/auth/supabase'
import { ThemeProvider } from '@/components/theme-provider'
import type { QueryClient } from '@tanstack/react-query'
interface Context {
auth: SupabaseAuthState,
queryClient: QueryClient
}
export const Route = createRootRouteWithContext<Context>()({
component: () => (
<>
<ThemeProvider defaultTheme="light" storageKey="vite-ui-theme">
<Outlet />
{/* <TanstackDevtools
config={{
position: 'bottom-left',
}}
plugins={[
{
name: 'Tanstack Router',
render: <TanStackRouterDevtoolsPanel />,
},
]}
/> */}
</ThemeProvider>
</>
),
})