lbry-desktop/src/renderer/component/walletSendTip/index.js
2018-04-18 00:13:00 -04:00

20 lines
564 B
JavaScript

import { connect } from 'react-redux';
import {
doSendSupport,
makeSelectTitleForUri,
makeSelectClaimForUri,
selectIsSendingSupport,
} from 'lbry-redux';
import WalletSendTip from './view';
const select = (state, props) => ({
isPending: selectIsSendingSupport(state),
title: makeSelectTitleForUri(props.uri)(state),
claim: makeSelectClaimForUri(props.uri)(state),
});
const perform = dispatch => ({
sendSupport: (amount, claimId, uri) => dispatch(doSendSupport(amount, claimId, uri)),
});
export default connect(select, perform)(WalletSendTip);