2019-02-04 20:46:15 -05:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
import Viewer from './Viewer.js';
|
2019-02-13 16:18:46 +01:00
|
|
|
import OHIF from 'ohif-core';
|
|
|
|
|
|
|
|
|
|
const { setTimepoints, setMeasurements } = OHIF.redux.actions;
|
2019-02-04 20:46:15 -05:00
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
|
|
|
return {
|
|
|
|
|
onTimepointsUpdated: timepoints => {
|
2019-02-13 16:18:46 +01:00
|
|
|
dispatch(setTimepoints(timepoints));
|
2019-02-04 20:46:15 -05:00
|
|
|
},
|
|
|
|
|
onMeasurementsUpdated: measurements => {
|
2019-02-13 16:18:46 +01:00
|
|
|
dispatch(setMeasurements(measurements));
|
2019-05-29 08:39:54 -04:00
|
|
|
},
|
2019-02-04 20:46:15 -05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const ConnectedViewer = connect(
|
|
|
|
|
null,
|
|
|
|
|
mapDispatchToProps
|
|
|
|
|
)(Viewer);
|
|
|
|
|
|
|
|
|
|
export default ConnectedViewer;
|