2017-12-21 22:08:54 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doCloseModal } from 'redux/actions/app';
|
|
|
|
import { makeSelectMetadataForUri } from 'redux/selectors/claims';
|
|
|
|
import ModalFileTimeout from './view';
|
2017-09-07 23:18:33 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
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(doCloseModal()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(ModalFileTimeout);
|