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

17 lines
512 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { selectAccessToken, selectUser } from 'redux/selectors/user';
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));