lbry-desktop/ui/js/modal/modalRevokeClaim/index.js
2017-11-02 01:53:30 +05:30

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);