Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

936 B
Raw Blame
"use client";

import { useEffect, useState } from "react";

import Link from "next/link";

import { Button } from "@/components/ui/button";
import { t } from "@/i18n";

export default function NotFound() {
  // This page is prerendered in the build-time locale; render the text only on the
  // client so a reader in another locale gets no hydration mismatch.
  const [mounted, setMounted] = useState(false);
  useEffect(() => setMounted(true), []);
  if (!mounted) return <div className="h-dvh" />;
  return (
    <div className="flex h-dvh flex-col items-center justify-center space-y-2 text-center">
      <h1 className="font-semibold text-2xl">{t("Page not found.")}</h1>
      <p className="text-muted-foreground">{t("The page you are looking for could not be found.")}</p>
      <Link prefetch={false} replace href="/function/tasks">
        <Button variant="outline">{t("Go back home")}</Button>
      </Link>
    </div>
  );
}