import { Button } from '@imphnen-frontend-service/ui/atoms'; import { InputField, Modal } from '@imphnen-frontend-service/ui/molecules'; import { useState } from 'react'; interface IModalEditAccount { isOpen: boolean; onClose: () => void; handleEditAccount?: () => void; currentStep?: number; nextStep: () => void; prevStep: () => void; resetStep: () => void; } const ModalEditAccount = ({ isOpen, onClose, currentStep, nextStep, prevStep, resetStep, handleEditAccount, }: IModalEditAccount) => { return ( { onClose(); resetStep(); }} disableEscapeKeyDown={true} > {currentStep === 1 && } {currentStep === 2 && ( )} ); }; interface IStepOneProps { nextStep: () => void; onClose: () => void; } const StepOne = ({ nextStep }: IStepOneProps) => { const [fullName, setFullName] = useState('Ahmad Wiyana'); const [email, setEmail] = useState('fullname23@gmail.com'); const [phoneNumber, setPhoneNumber] = useState('081904423804'); const [address, setAddress] = useState('Jl. Pantai Cibaduyut Indah'); return ( <>

Edit Data Akun

setFullName(e.target.value)} size="lg" className="w-full" /> setEmail(e.target.value)} size="lg" className="w-full" /> setPhoneNumber(e.target.value)} size="lg" className="w-full" /> setAddress(e.target.value)} size="lg" className="w-full" />
); }; interface IStepTwoProps { onClose: () => void; handleEditAccount?: () => void; resetStep: () => void; } const StepTwo = ({ onClose, handleEditAccount, resetStep }: IStepTwoProps) => ( <>

Update Data

Apakah kamu yakin dengan
perubahan yang dilakukan?

); export default ModalEditAccount;