import * as React from 'react'; import Lottie from 'react-lottie-player'; export interface Props { updateState: (arg: number) => void, message: string, updateStateWithError: (resError: any, screenId: number) => void, } export interface State { } export default class PaymentFailed extends React.Component { constructor(props: Props) { super(props); this.state = { submitted: false, currentState: 0 }; } render() { const { message } = this.props; return (

Payment Failed

{message || 'Your payment wasn’t done.Please try again.If your account was debited, it will be credited within a week.'}

this.props.updateStateWithError('closedModel', 1)} className="btn btnPrimary">Try Again
); } }