2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2019-09-25 14:59:47 +02:00
|
|
|
import {
|
|
|
|
selectBalance,
|
|
|
|
selectTotalBalance,
|
|
|
|
selectClaimsBalance,
|
|
|
|
selectSupportsBalance,
|
|
|
|
selectTipsBalance,
|
|
|
|
} from 'lbry-redux';
|
2019-09-30 23:48:30 +02:00
|
|
|
import { selectClaimedRewards } from 'lbryinc';
|
2017-12-21 22:08:54 +01:00
|
|
|
import WalletBalance from './view';
|
2017-08-17 22:19:29 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
balance: selectBalance(state),
|
2019-09-25 14:59:47 +02:00
|
|
|
totalBalance: selectTotalBalance(state),
|
2019-09-30 23:48:30 +02:00
|
|
|
claimsBalance: selectClaimsBalance(state) || 0,
|
|
|
|
supportsBalance: selectSupportsBalance(state) || 0,
|
|
|
|
tipsBalance: selectTipsBalance(state) || 0,
|
|
|
|
rewards: selectClaimedRewards(state),
|
2017-08-17 22:19:29 +02:00
|
|
|
});
|
|
|
|
|
2019-09-30 23:48:30 +02:00
|
|
|
export default connect(select)(WalletBalance);
|