import React from 'react' import { FpsMetricsProvider } from '../context/fpsMetrics.js' import { StatsProvider, type StatsStore } from '../context/stats.js' import { type AppState, AppStateProvider } from '../state/AppState.js' import { onChangeAppState } from '../state/onChangeAppState.js' import type { FpsMetrics } from '../utils/fpsTracker.js' type Props = { getFpsMetrics: () => FpsMetrics | undefined stats?: StatsStore initialState: AppState children: React.ReactNode } /** * Top-level wrapper for interactive sessions. * Provides FPS metrics, stats context, and app state to the component tree. */ export function App({ getFpsMetrics, stats, initialState, children, }: Props): React.ReactNode { return ( {children} ) }