lbry-desktop/ui/modal/modalFirstReward/index.js
2020-06-16 09:56:32 -04:00

19 lines
517 B
JavaScript

import { makeSelectRewardByType } from 'redux/selectors/rewards';
import rewards from 'rewards';
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);