Files
wzdj/old/components/layout/root-providers.tsx
2026-04-20 14:56:28 +08:00

24 lines
788 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client"
import { Suspense } from "react"
import { ConditionalShell } from "@/components/layout/conditional-shell"
import { DevPortBanner } from "@/components/layout/dev-port-banner"
import { AppProvider } from "@/components/providers/app-provider"
import { StreamerRefCapture } from "@/components/streamer-ref-capture"
import { Toaster } from "@/components/ui/toaster"
/** 全站仅用 MongoDB不再使用本地 IndexedDB (Dexie)。 */
export function RootProviders({ children }: { children: React.ReactNode }) {
const content = (
<>
<DevPortBanner />
<Suspense fallback={null}>
<StreamerRefCapture />
</Suspense>
<ConditionalShell>{children}</ConditionalShell>
<Toaster />
</>
)
return <AppProvider>{content}</AppProvider>
}