mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 01:35:11 +00:00
17 lines
647 B
JavaScript
17 lines
647 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doSendSupport } from 'redux/actions/wallet';
|
|
import { makeSelectTitleForUri, makeSelectClaimForUri } from 'redux/selectors/claims';
|
|
import { selectIsSendingSupport } from 'redux/selectors/wallet';
|
|
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);
|