mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 00:41:24 +00:00
21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
import { rewards, makeSelectRewardByType } from 'lbryinc';
|
|
import { connect } from 'react-redux';
|
|
import { doHideNotification } from 'lbry-redux';
|
|
import ModalFirstReward from './view';
|
|
|
|
const select = state => {
|
|
const selectReward = makeSelectRewardByType();
|
|
|
|
return {
|
|
reward: selectReward(state, rewards.TYPE_NEW_USER),
|
|
};
|
|
};
|
|
|
|
const perform = dispatch => ({
|
|
closeModal: () => dispatch(doHideNotification()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(ModalFirstReward);
|