2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { makeSelectMetadataForUri } from 'redux/selectors/claims';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2017-12-21 22:08:54 +01:00
|
|
|
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
|
|
|
});
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const perform = (dispatch) => ({
|
2018-10-29 18:23:53 +01:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2017-09-07 23:18:33 +02:00
|
|
|
});
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
export default connect(select, perform)(ModalFileTimeout);
|