"use client"; import Layout from "@/components/layout/Layout"; import Link from "next/link"; import { useState } from "react"; export default function ForgotPassword() { const [identify, setIdentifier] = useState(""); const [error, setError] = useState(""); const [isLoading, setIsLoading] = useState(false); const [wrongCred, setWrongCred] = useState(false); const [success, setSuccess] = useState(false); const handleForgotPassword = async (e) => { e.preventDefault(); setError(""); setIsLoading(true); // Simulate handling of forgot password logic (without supabase or nocodb) const emailIdentifier = identify; // Dummy logic for demonstration purposes if (!emailIdentifier.includes("@")) { setError("Please enter a valid email address."); setIsLoading(false); return; } // Simulate API call success setTimeout(() => { setSuccess(true); setIsLoading(false); }, 1000); }; return ( <>

Forgot Password?

No worries, we’ll send you reset instructions

setIdentifier(e.target.value)} required />

Don’t have an account?{" "} Register {" "} now, or{" "} Contact Us

); }