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