import { createContext } from 'react' ; import { PaymentMethod } from '@commercelayer/sdk' ; export interface InitialPaymentMethodChildrenContext { payment ? : PaymentMethod ; clickableContainer ? : boolean ; paymentSelected ? : string ; setPaymentSelected ? : ( paymentId : string ) => void ; } const initial = { } ; const PaymentMethodChildrenContext = createContext < InitialPaymentMethodChildrenContext > ( initial ) ; export default PaymentMethodChildrenContext ;