2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { compose } from 'redux';
|
|
|
|
import withModalProps from '../../../../helpers/higher-order-components/with-modal-props';
|
|
|
|
import RejectTransactionsModal from './reject-transactions.component';
|
2018-09-24 07:07:19 +02:00
|
|
|
|
2019-05-08 21:51:33 +02:00
|
|
|
const mapStateToProps = (_, ownProps) => {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { unapprovedTxCount } = ownProps;
|
2018-09-24 07:07:19 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
unapprovedTxCount,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2018-09-24 07:07:19 +02:00
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withModalProps,
|
|
|
|
connect(mapStateToProps),
|
2021-02-04 19:15:23 +01:00
|
|
|
)(RejectTransactionsModal);
|