import { localizedMetadata } from "@/lib/i18n/serverMetadata";
import type { Metadata } from "next";
import { Suspense } from "react";

import ForgotPasswordForm from "@/features/auth/components/ForgotPasswordForm";

/*
 * Title only. `robots: { index: false, follow: false }` is already set once on
 * `(auth)/layout.tsx` for all eight routes in this group, and the description,
 * icons, openGraph and the `"%s | Fursa"` title template come from the root
 * layout — so this page inherits everything except a name of its own. Without
 * one, the tab, the history entry and a bookmark all read the root layout's
 * default, which is the same string on every auth screen.
 */
const pageMetadata: Metadata = {
  title: "Forgot your password",
};

export async function generateMetadata(): Promise<Metadata> {
  return localizedMetadata(pageMetadata);
}

export default function ForgotPasswordPage() {
  return (
    <Suspense fallback={null}>
      <ForgotPasswordForm />
    </Suspense>
  );
}
