import { TxReceipt } from '@components/TransactionFlow' ; import { translateRaw } from '@translations' ; import { ITxConfig , ITxReceipt } from '@types' ; import { IZapConfig } from '../config' ; import { ZapReceiptBanner } from './ZapReceiptBanner' ; interface Props { txReceipt : ITxReceipt ; txConfig : ITxConfig ; zapSelected : IZapConfig ; resetFlow ( ) : void ; onComplete ( ) : void ; } export default function ZapReceipt ( { txReceipt , txConfig , zapSelected , resetFlow , onComplete } ) { return ( < TxReceipt txReceipt = { txReceipt } txConfig = { txConfig } customComponent = { ( ) => < ZapReceiptBanner zapSelected = { zapSelected } />} completeButton={translateRaw('INTERACT_ANOTHER')} resetFlow={resetFlow} onComplete={onComplete}/ > ) ; }