2020-05-07 14:22:55 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { doCheckReflectingFiles } from 'redux/actions/publish';
|
|
|
|
import { makeSelectReflectingClaimForUri } from 'redux/selectors/claims';
|
2020-05-07 14:22:55 +02:00
|
|
|
import PublishPending from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
reflectingInfo: props.uri && makeSelectReflectingClaimForUri(props.uri)(state),
|
|
|
|
});
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const perform = (dispatch) => ({
|
2020-05-07 14:22:55 +02:00
|
|
|
checkReflecting: () => dispatch(doCheckReflectingFiles()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(PublishPending);
|