/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import Translate from '@docusaurus/Translate'; import { getErrorCausalChain } from '@docusaurus/utils-common'; import styles from './errorBoundaryUtils.module.css'; export function ErrorBoundaryTryAgainButton(props) { return (); } // A very simple reusable ErrorBoundary fallback component export function ErrorBoundaryErrorMessageFallback({ error, tryAgain, }) { return (
{error.message}
{fullMessage}
; } /** * This component is useful to wrap a low-level error into a more meaningful * error with extra context, using the ES error-cause feature. * *