lbry-desktop/ui/component/walletSend/index.js
2020-06-15 10:50:01 -04:00

16 lines
508 B
JavaScript

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';
const perform = dispatch => ({
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
const select = state => ({
balance: selectBalance(state),
channels: selectMyChannelClaims(state),
});
export default withRouter(connect(select, perform)(WalletSend));