/** * Manifold — app root. The convertible Console (ConsoleApp) wired to the real * engine, mounted under EngineProvider. Defaults to the hero `focus="composite"` * (the convertible centerpiece). The `?debug=1` probe is installed once the * engine is live. */ import { useEffect } from 'react'; import { EngineProvider } from './engine/EngineProvider'; import { useEngine } from './engine/useEngine'; import { installDebugProbe } from './debug/probe'; import { ConsoleApp } from './console'; function Loading() { return (
Manifold loading engine…
); } /** Installs the debug probe once the engine is in context. */ function ProbeInstaller() { const engine = useEngine(); useEffect(() => { if (engine) installDebugProbe(engine); }, [engine]); return null; } export function App() { return ( }> ); }