import React from "react";
export class SentryErrorBoundary extends React.Component {
    state = { error: null };
    static getDerivedStateFromError(error) {
        return { error };
    }
    render() {
        if (this.state.error)
            return this.props.fallback ?? React.createElement("span", null, this.state.error.message);
        return this.props.children;
    }
}
