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

17 lines
508 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { selectBalance, selectMyChannelClaims } from 'lbry-redux';
import { doOpenModal } from 'redux/actions/app';
import WalletSend from './view';
import { withRouter } from 'react-router';
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
});
2018-03-26 23:32:43 +02:00
const select = state => ({
balance: selectBalance(state),
channels: selectMyChannelClaims(state),
2017-06-06 06:21:55 +02:00
});
export default withRouter(connect(select, perform)(WalletSend));