"use client"; import React, { Component, ErrorInfo, ReactNode } from "react"; import { AlertTriangle } from "lucide-react"; interface Props { children: ReactNode; fallback?: ReactNode; } interface State { hasError: boolean; } export class ErrorBoundary extends Component { public state: State = { hasError: false }; // eslint-disable-next-line @typescript-eslint/no-unused-vars public static getDerivedStateFromError(_error: Error): State { return { hasError: true }; } public componentDidCatch(error: Error, errorInfo: ErrorInfo) { console.error("Uncaught error in component boundary:", error, errorInfo); } public render() { if (this.state.hasError) { return this.props.fallback || (

{"// RUNTIME EXCEPTION CAUGHT"}

A secure runtime isolation boundary captured an exception in this module. The rest of the platform remains online.

); } return this.props.children; } }