2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2021-02-11 00:12:41 -05:00
|
|
|
import { selectBalance, selectFetchingMyChannels } from 'lbry-redux';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectUnclaimedRewardValue } from 'redux/selectors/rewards';
|
2017-12-21 18:08:54 -03:00
|
|
|
import PublishPage from './view';
|
2017-05-02 15:21:00 +07:00
|
|
|
|
2018-09-24 20:17:08 -04:00
|
|
|
const select = state => ({
|
|
|
|
balance: selectBalance(state),
|
2019-04-03 00:17:00 -04:00
|
|
|
totalRewardValue: selectUnclaimedRewardValue(state),
|
2021-02-11 00:12:41 -05:00
|
|
|
fetchingChannels: selectFetchingMyChannels(state),
|
2018-09-24 20:17:08 -04:00
|
|
|
});
|
2017-05-02 15:21:00 +07:00
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default connect(select, null)(PublishPage);
|