mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-03-22 02:51:53 +00:00
21 lines
665 B
TypeScript
21 lines
665 B
TypeScript
import { Button } from "@/components/ui/button"
|
|
import { useTranslation } from "react-i18next"
|
|
import { useNavigate } from "react-router-dom"
|
|
|
|
export default function NotFound() {
|
|
const navigate = useNavigate()
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className="flex flex-col items-center justify-center">
|
|
<div className="flex flex-col items-center gap-2">
|
|
<h1 className="text-4xl font-semibold">404</h1>
|
|
<p className="text-xl text-muted-foreground">{t("error.pageNotFound")}</p>
|
|
<Button onClick={() => navigate("/")} className="mt-2">
|
|
{t("error.backToHome")}
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|