import { ad as t, I as s, H as e, c8 as o, a4 as a } from "./56c67d3b.js";
import n from "react";
import "react-dom";
class h 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 {
  h as default
};
