import React from 'react';
import { Message, MESSAGE_TYPES } from '../message';
import { useTranslation } from '../hooks/use-translation';
import { jsx as _jsx } from "react/jsx-runtime";
export default function ErrorBoundaryBody({
  defaultFallbackText
}) {
  const {
    t
  } = useTranslation();
  return /*#__PURE__*/_jsx(Message, {
    type: 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.')
  });
}