2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-05-28 21:53:15 +02:00
|
|
|
import { selectBalance, doNotify } from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
import WalletSend from './view';
|
2017-05-11 02:59:47 +02:00
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
const perform = dispatch => ({
|
2018-05-28 21:53:15 +02:00
|
|
|
openModal: (modal, props) => dispatch(doNotify(modal, props)),
|
2017-06-06 06:21:55 +02:00
|
|
|
});
|
2017-05-11 02:59:47 +02:00
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
const select = state => ({
|
|
|
|
balance: selectBalance(state),
|
2017-06-06 06:21:55 +02:00
|
|
|
});
|
2017-05-11 02:59:47 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
export default connect(select, perform)(WalletSend);
|