mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 08:21:30 +00:00
20 lines
564 B
JavaScript
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);
|