import React from "react"; import BasicInfo from "./BasicInfo"; import YourAreAlmostThere from "./YourAreAlmostThere"; import LoanAmountComp from "./LoanAmountComp"; import ApplicantsAttestation from "./ApplicantsAttestation"; const GetStarted = ({handleNextStep, step}:{handleNextStep:any, step:string|number|any}) => { // const [step, setStep] = React.useState(1); // const handleNextStep = () => { // if (step < 5) { // setStep(step + 1); // } // }; // const handlePreviousStep: React.MouseEvent = () => { // setStep(step - 1); // }; const [inputValues, setInputValues] = React.useState({ title: "", marital: "", agentId: "", bvn: "", firstName: "", phone: "", email: "", surname: "", dob: "", secondName: "", spouseBVN: "", }); return (
{/* Main */}
{step === 2 && ( )} {step === 3 && } {step === 4 && } {step === 5 && }
); }; export default GetStarted;