import { useEffect, useState } from "react"; import { Button } from "@mui/material"; import AddCircleBlueA from "@/components/icons/AddCircleBlueA"; import ArrowLeftB from "@/components/icons/ArrowLeftB"; import ButtonFixed from "../paying/ButtonFixed"; import Form from "./Form"; import { request } from "@/services/response"; function Detail({ isForAnother, setStep, setIsForAnother, data, setData, fadeElement, setIsPay, }) { const [insurance, setInsurance] = useState(); const [selected, setSelected] = useState({ first: "", second: "", }); const changeData = (value, type, name) => setData({ ...data, [name]: { ...data[name], [type]: value, }, }); const updateSelect = (event, name) => setSelected({ ...selected, [name]: event }); const newStep = () => { // if(data) setStep((prev) => prev + 1); }; useEffect(() => { request.getInsuranceType().then((res) => { if (res && res.data) { setInsurance(res.data); } }); }, []); return ( // ${typePay === 'success' || typePay === 'failed' ? 'bg-transparent border-transparent md:bg-[#FFF] md:border-[#EFEFEF]' : ''}

{isForAnother ? "اطلاعات کاربر جدید" : "اطلاعات حساب کاربری"}

{!isForAnother && ( )}
); } export default Detail;