17 lines
553 B
JavaScript
17 lines
553 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import { doCloseModal } from "actions/app";
|
|
import { doAbandonClaim } from "actions/content";
|
|
import { selectTransactionItems } from "selectors/wallet";
|
|
import ModalRevokeClaim from "./view";
|
|
|
|
const select = state => ({
|
|
transactionItems: selectTransactionItems(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
closeModal: () => dispatch(doCloseModal()),
|
|
abandonClaim: (txid, nout) => dispatch(doAbandonClaim(txid, nout)),
|
|
});
|
|
|
|
export default connect(select, perform)(ModalRevokeClaim);
|