lbry-desktop/ui/js/component/auth/index.js
2017-06-07 12:04:39 -04:00

27 lines
637 B
JavaScript

import React from 'react'
import {
connect,
} from 'react-redux'
import {
selectFetchingRewards,
selectClaimedRewardsByType,
makeSelectRewardByType,
} from 'selectors/rewards'
import AuthOverlay from './view'
const makeSelect = () => {
const selectRewardByType = makeSelectRewardByType()
const select = (state) => ({
fetchingRewards: selectFetchingRewards(state),
claimedRewardsByType: selectClaimedRewardsByType(state),
newUserReward: selectRewardByType(state, { reward_type: 'new_user' }),
})
return select
}
const perform = (dispatch) => ({
})
export default connect(makeSelect, perform)(AuthOverlay)