import { P as t, bh as s, V as e, bE as o, a0 as a } from "./684d2f28.js";
import n from "react";
import "react-dom";
class d extends n.Component {
  constructor(r) {
    super(r), this.state = {};
  }
  static getDerivedStateFromError(r) {
    return {
      errorMessage: r.toString()
    };
  }
  componentDidCatch(r, c) {
  }
  render() {
    return this.state.errorMessage ? /* @__PURE__ */ t(s, {
      children: [/* @__PURE__ */ e("p", {
        children: this.state.errorMessage
      }), /* @__PURE__ */ e(o, {
        type: "primary",
        onClick: () => this.setState({
          errorMessage: ""
        }),
        children: a("jsonSchemaForm.retry")
      })]
    }) : this.props.children;
  }
}
export {
  d as default
};
