mirror of
https://github.com/Xevion/smart-rgb.git
synced 2025-12-05 23:16:23 -06:00
18 lines
725 B
TypeScript
18 lines
725 B
TypeScript
import { type ReactNode } from 'react'
|
|
import { GameAPIProvider } from '@/shared/api/GameAPIContext'
|
|
import { AnalyticsProvider } from '@/shared/analytics'
|
|
|
|
// Fonts are imported in +Head.tsx
|
|
|
|
// Server-side wrapper provides stub implementations for SSG/pre-rendering
|
|
// The real implementations are provided by +Wrapper.client.tsx on the client
|
|
export default function Wrapper({ children }: { children: ReactNode }) {
|
|
// During SSR/pre-rendering, provide null implementations
|
|
// These will be replaced by real implementations when the client-side wrapper takes over
|
|
return (
|
|
<AnalyticsProvider api={null as any}>
|
|
<GameAPIProvider api={null as any}>{children}</GameAPIProvider>
|
|
</AnalyticsProvider>
|
|
)
|
|
}
|