mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-02 02:05:11 +00:00
20 lines
633 B
JavaScript
20 lines
633 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectUnclaimedRewardValue, selectFetchingRewards } from 'redux/selectors/rewards';
|
|
import { doRewardList } from 'redux/actions/rewards';
|
|
import { doFetchRewardedContent } from 'redux/actions/content';
|
|
import RewardSummary from './view';
|
|
|
|
const select = state => ({
|
|
unclaimedRewardAmount: selectUnclaimedRewardValue(state),
|
|
fetching: selectFetchingRewards(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchRewards: () => dispatch(doRewardList()),
|
|
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(RewardSummary);
|