lbry-desktop/ui/js/modal/modalFileTimeout/index.js
2017-11-13 16:02:23 -05:00

15 lines
452 B
JavaScript

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