import { connect } from 'react-redux' ; import Redux from 'redux' ; import { toPrevious } from '../../actions/Card' ; import { AppState , CardName } from '../../reducers/StateTypes' ; import CheckoutDone , { DispatchProps , StateProps } from './CheckoutDone' ; import { ParserNode } from './quest/cardtemplates/TemplateTypes' ; const mapStateToProps = ( state ) : StateProps => { return { checkout : state . checkout , } ; } ; const mapDispatchToProps = ( dispatch ) : DispatchProps => { return { onHome : ( ) : void => { dispatch ( toPrevious ( { matchFn : ( c , n ) => c === 'TUTORIAL_QUESTS' } ) ) ; } , } ; } ; const CheckoutDoneContainer = connect ( mapStateToProps , mapDispatchToProps ) ( CheckoutDone ) ; export default CheckoutDoneContainer ;