"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = ErrorBoundaryBody;
var _react = _interopRequireDefault(require("react"));
var _message = require("../message");
var _useTranslation = require("../hooks/use-translation");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function ErrorBoundaryBody({
  defaultFallbackText
}) {
  const {
    t
  } = (0, _useTranslation.useTranslation)();
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_message.Message, {
    type: _message.MESSAGE_TYPES.ERROR,
    testId: "error-boundary-default-fallback",
    children: defaultFallbackText || t('We encountered an unexpected error and cannot proceed. Try again or contact Support for assistance.')
  });
}