mirror of
https://github.com/outline/outline.git
synced 2025-12-30 07:19:52 -06:00
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { useTranslation } from "react-i18next";
|
||
import { useHistory } from "react-router-dom";
|
||
import Flex from "@shared/components/Flex";
|
||
import Button from "~/components/Button";
|
||
import Empty from "~/components/Empty";
|
||
import Heading from "~/components/Heading";
|
||
import Scene from "~/components/Scene";
|
||
import { navigateToHome } from "~/actions/definitions/navigation";
|
||
|
||
const Error403 = () => {
|
||
const { t } = useTranslation();
|
||
const history = useHistory();
|
||
|
||
return (
|
||
<Scene title={t("No access to this doc")}>
|
||
<Heading>{t("No access to this doc")}</Heading>
|
||
<Flex gap={20} style={{ maxWidth: 500 }} column>
|
||
<Empty size="large">
|
||
{t(
|
||
"It doesn’t look like you have permission to access this document."
|
||
)}{" "}
|
||
{t("Please request access from the document owner.")}
|
||
</Empty>
|
||
<Flex gap={8}>
|
||
<Button action={navigateToHome} hideIcon>
|
||
{t("Home")}
|
||
</Button>
|
||
<Button onClick={history.goBack} neutral>
|
||
{t("Go back")}
|
||
</Button>
|
||
</Flex>
|
||
</Flex>
|
||
</Scene>
|
||
);
|
||
};
|
||
|
||
export default Error403;
|