mirror of
https://github.com/outline/outline.git
synced 2025-12-21 10:39:41 -06:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { Trans, useTranslation } from "react-i18next";
|
|
import Flex from "@shared/components/Flex";
|
|
import Button from "~/components/Button";
|
|
import CenteredContent from "~/components/CenteredContent";
|
|
import Empty from "~/components/Empty";
|
|
import Heading from "~/components/Heading";
|
|
import PageTitle from "~/components/PageTitle";
|
|
import { navigateToHome } from "~/actions/definitions/navigation";
|
|
|
|
const ErrorUnknown = () => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<CenteredContent>
|
|
<PageTitle title={t("Something went wrong")} />
|
|
<Heading>{t("Something went wrong")}</Heading>
|
|
<Flex gap={20} style={{ maxWidth: 500 }} column>
|
|
<Empty size="large">
|
|
<Trans>
|
|
Sorry, an unknown error occurred loading the page. Please try again
|
|
or contact support if the issue persists.
|
|
</Trans>
|
|
</Empty>
|
|
<Flex gap={8}>
|
|
<Button action={navigateToHome} neutral hideIcon>
|
|
{t("Home")}
|
|
</Button>
|
|
</Flex>
|
|
</Flex>
|
|
</CenteredContent>
|
|
);
|
|
};
|
|
|
|
export default ErrorUnknown;
|