21 lines
485 B
JavaScript
21 lines
485 B
JavaScript
import { rewards, makeSelectRewardByType } from 'lbryinc';
|
|
import { connect } from 'react-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import ModalFirstReward from './view';
|
|
|
|
const select = state => {
|
|
const selectReward = makeSelectRewardByType();
|
|
|
|
return {
|
|
reward: selectReward(state, rewards.TYPE_NEW_USER),
|
|
};
|
|
};
|
|
|
|
const perform = dispatch => ({
|
|
closeModal: () => dispatch(doHideModal()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(ModalFirstReward);
|