"use client"; import { useActionState } from "react"; import { useFormStatus } from "react-dom"; import Link from "next/link"; import { forgotPassword } from "@/app/actions/auth"; function SubmitButton() { const { pending } = useFormStatus(); return ( ); } export default function ForgotPasswordPage() { const [state, formAction] = useActionState(forgotPassword, undefined); return (
OL

Order Loop

Forgot your password?

Enter your email and we'll send you a reset link.

{state?.message && (
{state.message}
)}
Back to login
); }