import { Dialog, Transition } from '@headlessui/react'; import { Fragment } from 'react'; type PaymentModalProps = { open: boolean; setPayment: (arg0: boolean) => void; }; const PaymentModal = ({ open, setPayment }: PaymentModalProps): JSX.Element => { function closeModal() { setPayment(false); } return ( <>
{/* This element is to trick the browser into centering the modal contents. */}
Payment successful 🎉

Your payment has been successfully submitted. Thank you for your support!

); }; export default PaymentModal;