Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

801 B
Raw Blame
import type { PropsWithChildren } from 'react'
import { ServiceHubProvider } from './ServiceHubProvider'
import { ExtensionProvider } from './ExtensionProvider'
import { TranslationProvider } from '@/i18n/TranslationContext'

/**
 * Startup must live OUTSIDE RouterProvider: initial beforeLoad runs before the
 * root route mounts. Keeping these gates in RootLayout prevents a direct thread
 * link from ever initializing the services its classification needs. Settings
 * and Cowork migration still hydrate before extensions, then route loading.
 */
export function StartupProvider({ children }: PropsWithChildren) {
  return (
    <ServiceHubProvider>
      <TranslationProvider>
        <ExtensionProvider>{children}</ExtensionProvider>
      </TranslationProvider>
    </ServiceHubProvider>
  )
}