import { connect } from 'react-redux'; import { updateSendAmount, getSendAmount, sendAmountIsInError, getSendAsset, } from '../../../../ducks/send'; import SendAmountRow from './send-amount-row.component'; export default connect(mapStateToProps, mapDispatchToProps)(SendAmountRow); function mapStateToProps(state) { return { amount: getSendAmount(state), inError: sendAmountIsInError(state), asset: getSendAsset(state), }; } function mapDispatchToProps(dispatch) { return { updateSendAmount: (newAmount) => dispatch(updateSendAmount(newAmount)), }; }