← Files DataARCHIVED FILE
output_formats/html/src/components/DataAppErrorState.jsx
537 Bytes · Nov 19, 2026 · 00:12 UTC
import React, { Component } from "react";
import { DataErrorState } from "@openai/data-ui/primitives/DataErrorState.jsx";
export function DataAppErrorState(props) {
return <DataErrorState {...props} height={420} tag="main" />;
}
export class DataAppErrorBoundary extends Component {
state = { error: null };
static getDerivedStateFromError(error) { return { error }; }
render() {
return this.state.error
? <DataAppErrorState error={this.state.error} surface={this.props.surface} />
: this.props.children;
}
}
SHA-256: aa751c09d31271631db70e67e88a85e33fd06c8f479c028f4a902d025d4ef287