2021-03-02 03:07:10 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-03-15 15:32:51 +01:00
|
|
|
import { doResolveUri } from 'lbry-redux';
|
|
|
|
import { doSetPlayingUri } from 'redux/actions/content';
|
|
|
|
import { doUserSetReferrer } from 'redux/actions/user';
|
|
|
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
|
|
|
import { selectHasUnclaimedRefereeReward } from 'redux/selectors/rewards';
|
|
|
|
import LivestreamPage from './view';
|
2021-03-02 03:07:10 +01:00
|
|
|
|
2021-03-10 19:34:21 +01:00
|
|
|
const select = (state) => ({
|
2021-03-15 15:32:51 +01:00
|
|
|
hasUnclaimedRefereeReward: selectHasUnclaimedRefereeReward(state),
|
|
|
|
isAuthenticated: selectUserVerifiedEmail(state),
|
2021-03-02 03:07:10 +01:00
|
|
|
});
|
|
|
|
|
2021-03-15 15:32:51 +01:00
|
|
|
export default connect(select, {
|
|
|
|
doSetPlayingUri,
|
|
|
|
doResolveUri,
|
|
|
|
doUserSetReferrer,
|
|
|
|
})(LivestreamPage);
|