mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-14 20:24:56 +02:00
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
/**
|
|
* 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 {
|
|
ErrorBoundaryError,
|
|
ErrorBoundaryTryAgainButton,
|
|
} from '@docusaurus/theme-common';
|
|
import Heading from '@theme/Heading';
|
|
export default function ErrorPageContent({error, tryAgain}) {
|
|
return (
|
|
<main className="container margin-vert--xl">
|
|
<div className="row">
|
|
<div className="col col--6 col--offset-3">
|
|
<Heading as="h1" className="hero__title">
|
|
<Translate
|
|
id="theme.ErrorPageContent.title"
|
|
description="The title of the fallback page when the page crashed">
|
|
This page crashed.
|
|
</Translate>
|
|
</Heading>
|
|
<div className="margin-vert--lg">
|
|
<ErrorBoundaryTryAgainButton
|
|
onClick={tryAgain}
|
|
className="button button--primary shadow--lw"
|
|
/>
|
|
</div>
|
|
<hr />
|
|
<div className="margin-vert--md">
|
|
<ErrorBoundaryError error={error} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|