lbry-desktop/src/ui/modal/modalAffirmPurchase/index.js
Sean Yesmunt f25559adfb oh boy
2019-08-12 12:37:44 -04:00

26 lines
659 B
JavaScript

import { connect } from 'react-redux';
import { doSetPlayingUri } from 'redux/actions/content';
import { doHideModal } from 'redux/actions/app';
import { makeSelectMetadataForUri } from 'lbry-redux';
import ModalAffirmPurchase from './view';
const select = (state, props) => ({
metadata: makeSelectMetadataForUri(props.uri)(state),
});
const perform = dispatch => ({
cancelPurchase: () => {
dispatch(doSetPlayingUri(null));
dispatch(doHideModal());
},
closeModal: () => dispatch(doHideModal()),
loadVideo: uri => {
throw Error('sean you need to fix this');
},
});
export default connect(
select,
perform
)(ModalAffirmPurchase);