lbry-desktop/ui/modal/modalFirstSubscription/index.js
2019-11-20 23:55:43 -05:00

21 lines
505 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { selectAccessToken, selectUser } from 'lbryinc';
import { withRouter } from 'react-router';
import ModalFirstSubscription from './view';
const select = state => ({
accessToken: selectAccessToken(state),
user: selectUser(state),
})
const perform = dispatch => () => ({
closeModal: () => dispatch(doHideModal()),
});
export default withRouter(connect(
select,
perform
)(ModalFirstSubscription));