lbry-desktop/ui/js/modal/modalAffirmPurchase/index.js
2017-09-07 17:18:33 -04:00

15 lines
437 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doCloseModal } from "actions/app";
import { makeSelectMetadataForUri } from "selectors/claims";
import ModalAffirmPurchase from "./view";
const select = state => ({
metadata: makeSelectMetadataForUri()(state),
});
const perform = dispatch => ({
closeModal: () => dispatch(doCloseModal()),
});
export default connect(select, perform)(ModalAffirmPurchase);