import React, { useState } from "react"; import { Link } from "react-router-dom"; import { Label } from "@/components/ui/label"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { ArrowLeft, Mail, Check } from "lucide-react"; import { useToast } from "@/components/ui/use-toast"; const ForgotPassword = () => { const [email, setEmail] = useState(""); const [isLoading, setIsLoading] = useState(false); const [isSubmitted, setIsSubmitted] = useState(false); const { toast } = useToast(); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); if (!email) { toast({ title: "입력 오류", description: "이메일을 입력해주세요.", variant: "destructive", }); return; } setIsLoading(true); // 실제 비밀번호 찾기 로직은 추후 구현 // 임시로 2초 후 성공으로 처리 setTimeout(() => { setIsLoading(false); setIsSubmitted(true); toast({ title: "이메일 전송 완료", description: "비밀번호 재설정 링크가 이메일로 전송되었습니다.", }); }, 2000); }; return (
젤리의 적자탈출 계정에 등록된 이메일을 입력해주세요
{email}로 비밀번호 재설정 링크를 보냈습니다. 이메일을 확인해주세요.