import { useState } from "react"; import SuccessPay from "./SuccessPay"; import FailedPay from "./FailedPay"; import Paying from "./Paying"; function Payment({ setIsPay, fadeElement, typePay, setTypePay }) { return ( <> {typePay === 'default' ? : typePay === 'success' ? : } ) } export default Payment