lbry-desktop/ui/modal/modalFileTimeout/index.js

18 lines
426 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { makeSelectMetadataForUri } from 'lbry-redux';
import { doHideModal } from 'redux/actions/app';
import ModalFileTimeout from './view';
2017-09-07 23:18:33 +02:00
2018-04-18 06:03:01 +02:00
const select = (state, props) => ({
2017-09-08 05:15:05 +02:00
metadata: makeSelectMetadataForUri(props.uri)(state),
2017-09-07 23:18:33 +02:00
});
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2017-09-07 23:18:33 +02:00
});
export default connect(
select,
perform
)(ModalFileTimeout);