import React from "react"; import PasswordResetForm from "../components/Auth/PasswordResetForm"; import { useParams } from "react-router-dom"; const ResetPasswordPage: React.FC = () => { const { token } = useParams<{ token: string }>(); const handlePasswordReset = (success: boolean) => { if (success) { alert("Password reset successful!"); window.location.href = "/"; } else { alert("Password reset failed."); } }; if (!token) { return (

Invalid or missing token.

); } return (

Forgot Password

); }; export default ResetPasswordPage;