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

15 lines
434 B
JavaScript
Raw Normal View History

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