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 (
Your password has been updated. You can now sign in with your new password.
Enter a new password for your account