import { useState } from "react"; import Payment from "./payment"; import Detail from "./detail"; function Information({ typePay, setTypePay, setIsPay, isPay }) { const [isForAnother, setIsForAnother] = useState(false); const [fade, setFade] = useState(false); const fadeElement = (func) => { setFade(true); const timeout = setTimeout(() => { func() setFade(false); }, 1000); return () => clearTimeout(timeout); } return (