2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { makeSelectMetadataForUri } from 'lbry-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2017-12-21 18:08:54 -03:00
|
|
|
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 => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2017-09-07 17:18:33 -04:00
|
|
|
});
|
|
|
|
|
2018-11-01 22:55:25 +01:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ModalFileTimeout);
|