24 lines
696 B
JavaScript
24 lines
696 B
JavaScript
|
|
import { connect } from 'react-redux';
|
||
|
|
import StudyLoadingMonitor from './StudyLoadingMonitor.js';
|
||
|
|
import OHIF from 'ohif-core'
|
||
|
|
|
||
|
|
const { setStudyLoadingProgress, clearStudyLoadingProgress } = OHIF.redux.actions;
|
||
|
|
|
||
|
|
const mapDispatchToProps = dispatch => {
|
||
|
|
return {
|
||
|
|
setStudyLoadingProgress: (progressId, progressData) => {
|
||
|
|
dispatch(setStudyLoadingProgress(progressId, progressData))
|
||
|
|
},
|
||
|
|
clearStudyLoadingProgress: progressId => {
|
||
|
|
dispatch(clearStudyLoadingProgress(progressId))
|
||
|
|
}
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
const ConnectedStudyLoadingMonitor = connect(
|
||
|
|
null,
|
||
|
|
mapDispatchToProps
|
||
|
|
)(StudyLoadingMonitor);
|
||
|
|
|
||
|
|
export default ConnectedStudyLoadingMonitor;
|