lbry-desktop/ui/component/walletSend/index.js

20 lines
694 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { selectBalance, selectMyChannelClaims, makeSelectClaimForUri } from 'lbry-redux';
import { doOpenModal } from 'redux/actions/app';
import WalletSend from './view';
import { withRouter } from 'react-router';
import { selectToast } from 'redux/selectors/notifications';
2018-03-26 23:32:43 +02:00
const perform = dispatch => ({
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
2017-06-06 06:21:55 +02:00
});
const select = (state, props) => ({
2018-03-26 23:32:43 +02:00
balance: selectBalance(state),
channels: selectMyChannelClaims(state),
contentClaim: makeSelectClaimForUri(props.contentUri)(state),
snack: selectToast(state),
2017-06-06 06:21:55 +02:00
});
export default withRouter(connect(select, perform)(WalletSend));