import { memo, createElement } from "react";
import { Message } from "@contember/ui";
import { ErrorBoundary } from "react-error-boundary";
const PageErrorBoundary = memo((props) => /* @__PURE__ */ createElement(ErrorBoundary, {
  FallbackComponent: ProdErrorFallback
}, props.children));
function ProdErrorFallback({}) {
  return /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement(Message, {
    intent: "danger",
    size: "large"
  }, "Fatal error!"));
}
export { PageErrorBoundary };
//# sourceMappingURL=PageErrorBoundary.js.map
