2025-03-08 10:01:08 -06:00
|
|
|
import Heading from "@/components/ui/heading";
|
|
|
|
|
import { useEffect } from "react";
|
2025-03-16 23:36:20 +08:00
|
|
|
import { useTranslation } from "react-i18next";
|
2025-03-08 10:01:08 -06:00
|
|
|
import { FaExclamationTriangle } from "react-icons/fa";
|
|
|
|
|
|
|
|
|
|
export default function AccessDenied() {
|
2025-03-16 23:36:20 +08:00
|
|
|
const { t } = useTranslation(["common"]);
|
2025-03-08 10:01:08 -06:00
|
|
|
useEffect(() => {
|
2025-03-16 23:36:20 +08:00
|
|
|
document.title = t("accessDenied.documentTitle");
|
|
|
|
|
}, [t]);
|
2025-03-08 10:01:08 -06:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="flex min-h-screen flex-col items-center justify-center text-center">
|
|
|
|
|
<FaExclamationTriangle className="mb-4 size-8" />
|
|
|
|
|
<Heading as="h2" className="mb-2">
|
2025-03-16 23:36:20 +08:00
|
|
|
{t("accessDenied.title")}
|
2025-03-08 10:01:08 -06:00
|
|
|
</Heading>
|
2025-03-16 23:36:20 +08:00
|
|
|
<p className="text-primary-variant">{t("accessDenied.desc")}</p>
|
2025-03-08 10:01:08 -06:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|