import * as _ from 'lodash'; import * as React from 'react'; import { connect } from 'react-redux'; import { Dispatch } from 'redux'; import { Action, actions } from '../redux/actions'; import { RetryButton } from '../components/retry_button'; export interface SelectedAssetRetryButtonProps {} interface ConnectedDispatch { onClick: () => void; } const mapDispatchToProps = ( dispatch: Dispatch, _ownProps: SelectedAssetRetryButtonProps, ): ConnectedDispatch => ({ onClick: () => dispatch(actions.clearBuyQuoteAndSelectedAssetAmount()), }); export const SelectedAssetRetryButton: React.ComponentClass = connect( null, mapDispatchToProps, )(RetryButton);