2023-12-08 07:33:22 -06:00
|
|
|
import Heading from "@/components/ui/heading";
|
2024-04-12 06:31:30 -06:00
|
|
|
import { useEffect } from "react";
|
2025-03-16 23:36:20 +08:00
|
|
|
import { useTranslation } from "react-i18next";
|
2023-12-08 07:33:22 -06:00
|
|
|
|
|
|
|
|
function NoMatch() {
|
2025-03-16 23:36:20 +08:00
|
|
|
const { t } = useTranslation(["common"]);
|
2024-04-12 06:31:30 -06:00
|
|
|
useEffect(() => {
|
2025-03-16 23:36:20 +08:00
|
|
|
document.title = t("notFound.documentTitle");
|
|
|
|
|
}, [t]);
|
2024-04-12 06:31:30 -06:00
|
|
|
|
2023-12-08 07:33:22 -06:00
|
|
|
return (
|
|
|
|
|
<>
|
2025-03-16 23:36:20 +08:00
|
|
|
<Heading as="h2">{t("notFound.title")}</Heading>
|
|
|
|
|
<p>{t("notFound.desc")}</p>
|
2023-12-08 07:33:22 -06:00
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default NoMatch;
|