lbry-desktop/ui/modal/modalFileTimeout/index.js
2019-11-11 13:27:29 -05:00

17 lines
426 B
JavaScript

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