import React from 'react'; export class ErrorBoundary extends React.Component< { children: React.ReactNode }, { error: Error | null } > { state = { error: null as Error | null }; static getDerivedStateFromError(error: Error) { return { error }; } componentDidCatch(error: Error) { console.error('[GooseUltra] UI crash:', error); } render() { if (!this.state.error) return this.props.children; return (
UI RECOVERED FROM CRASH
Something crashed in the renderer.
            {String(this.state.error?.message || this.state.error)}
          
Check DevTools console for the stack trace.
); } }