2018-03-16 11:22:19 -07:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2019-11-18 16:57:03 -05:00
|
|
|
import { selectAccessToken, selectUser } from 'lbryinc';
|
|
|
|
import { withRouter } from 'react-router';
|
|
|
|
|
|
|
|
|
2018-03-16 11:22:19 -07:00
|
|
|
import ModalFirstSubscription from './view';
|
|
|
|
|
2019-11-18 16:57:03 -05:00
|
|
|
const select = state => ({
|
|
|
|
accessToken: selectAccessToken(state),
|
|
|
|
user: selectUser(state),
|
|
|
|
})
|
|
|
|
|
2018-03-16 11:22:19 -07:00
|
|
|
const perform = dispatch => () => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2018-03-16 11:22:19 -07:00
|
|
|
});
|
|
|
|
|
2019-11-18 16:57:03 -05:00
|
|
|
export default withRouter(connect(
|
|
|
|
select,
|
2018-11-01 22:55:25 +01:00
|
|
|
perform
|
2019-11-18 16:57:03 -05:00
|
|
|
)(ModalFirstSubscription));
|