lbry-desktop/ui/modal/modalFirstSubscription/index.js

22 lines
505 B
JavaScript
Raw Normal View History

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