import { useState } from "react"; import { useNavigate } from "react-router-dom"; import { Lock, ArrowRight, CheckCircle } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; export default function ResetPasswordPage() { const navigate = useNavigate(); const [password, setPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); const [isLoading, setIsLoading] = useState(false); const [isSuccess, setIsSuccess] = useState(false); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); if (password !== confirmPassword) { return; } setIsLoading(true); setTimeout(() => { setIsLoading(false); setIsSuccess(true); }, 1000); }; if (isSuccess) { return (

Password reset successful

Your password has been updated. You can now sign in with your new password.

); } return (

Reset your password

Enter a new password for your account

setPassword(e.target.value)} className="pl-10" required minLength={8} />

Must be at least 8 characters

setConfirmPassword(e.target.value)} className="pl-10" required />
); }