2017-09-07 23:18:33 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
import { doCloseModal } from "actions/app";
|
2017-09-08 05:15:05 +02:00
|
|
|
import { doLoadVideo } from "actions/content";
|
2017-09-07 23:18:33 +02:00
|
|
|
import { makeSelectMetadataForUri } from "selectors/claims";
|
|
|
|
import ModalAffirmPurchase from "./view";
|
|
|
|
|
2017-09-08 05:15:05 +02:00
|
|
|
const select = (state, props) => ({
|
|
|
|
metadata: makeSelectMetadataForUri(props.uri)(state),
|
2017-09-07 23:18:33 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
closeModal: () => dispatch(doCloseModal()),
|
2017-09-08 05:15:05 +02:00
|
|
|
loadVideo: uri => dispatch(doLoadVideo(uri)),
|
2017-09-07 23:18:33 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(ModalAffirmPurchase);
|