2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-04-19 18:51:18 +02:00
|
|
|
import { doHideNotification, doAbandonClaim, selectTransactionItems } from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import ModalRevokeClaim from './view';
|
2017-10-27 21:42:54 +02:00
|
|
|
|
2017-11-01 21:23:30 +01:00
|
|
|
const select = state => ({
|
|
|
|
transactionItems: selectTransactionItems(state),
|
|
|
|
});
|
|
|
|
|
2017-10-27 21:42:54 +02:00
|
|
|
const perform = dispatch => ({
|
2018-04-19 18:51:18 +02:00
|
|
|
closeModal: () => dispatch(doHideNotification()),
|
2017-11-01 21:23:30 +01:00
|
|
|
abandonClaim: (txid, nout) => dispatch(doAbandonClaim(txid, nout)),
|
2017-10-27 21:42:54 +02:00
|
|
|
});
|
|
|
|
|
2017-11-01 21:23:30 +01:00
|
|
|
export default connect(select, perform)(ModalRevokeClaim);
|