Files
wzdj/components/layout/root-providers.tsx
卡若 b95d1a94c6 feat(live): 直播与主播工作台 API、云厂商解析与文档调研
- 新增直播评论/上下文/礼物等 API 与回放组件
- 主播开播、云端推流配置与 streamer 校验
- 依赖与 Mongo 集合/种子更新
- 需求与调研文档补充

Made-with: Cursor
2026-04-14 16:24:17 +08:00

24 lines
788 B
TypeScript
Raw 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>
}