import { Elements } from '@stripe/react-stripe-js'; import CheckoutForm, { TConfirmType } from '@/components/PaymentPage/methods/CheckoutForm'; import Modal from '@/components/Modal'; import { Stripe } from '@stripe/stripe-js'; import { Dispatch, SetStateAction } from 'react'; import './style.scss'; interface IPaymentCardModalProps { clientSecret?: string; stripePromise: Promise | null; paymentType?: TConfirmType; paymentIntentId?: string; returnUrl?: string; isOpen: boolean; setIsOpen: Dispatch>; removeNoScroll?: boolean; } export default function PaymentCardModal({ clientSecret, stripePromise, paymentType, paymentIntentId, returnUrl, isOpen, setIsOpen, removeNoScroll, }: IPaymentCardModalProps) { return ( setIsOpen(false)} removeNoScroll={removeNoScroll}> ) }