import { Button } from "@xtablo/ui/components/button";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";

export const NotFoundPage = () => {
  const { t } = useTranslation("common");
  const navigate = useNavigate();
  return (
    <div className="min-h-screen flex items-center justify-center">
      <div className="container max-w-md mx-auto px-4">
        <div className="flex flex-col items-center justify-center space-y-6 text-center">
          <div className="space-y-2">
            <h1 className="text-6xl font-bold tracking-tighter">404</h1>
            <h2 className="text-2xl font-semibold tracking-tight">{t("notFound.title")}</h2>
          </div>
          <p className="text-muted-foreground">{t("notFound.description")}</p>
          <Button onClick={() => navigate("/login")} size="lg">
            {t("notFound.backHome")}
          </Button>
        </div>
      </div>
    </div>
  );
};
