Files
ohif-viewer/platform/viewer/src/connectedComponents/ConnectedLabellingOverlay.js
T

24 lines
463 B
JavaScript
Raw Normal View History

2019-05-29 08:39:54 -04:00
import { connect } from 'react-redux';
import LabellingOverlay from './LabellingOverlay';
2019-05-02 17:12:06 -04:00
const mapStateToProps = state => {
if (!state.ui || !state.ui.labelling) {
return {
visible: false,
2019-05-29 08:39:54 -04:00
};
2019-05-02 17:12:06 -04:00
}
2019-05-29 08:39:54 -04:00
const labellingFlowData = state.ui.labelling;
2019-05-02 17:12:06 -04:00
return {
visible: false,
...labellingFlowData,
2019-05-29 08:39:54 -04:00
};
};
2019-05-02 17:12:06 -04:00
const ConnectedLabellingOverlay = connect(
mapStateToProps,
null
2019-05-29 08:39:54 -04:00
)(LabellingOverlay);
2019-05-02 17:12:06 -04:00
2019-05-29 08:39:54 -04:00
export default ConnectedLabellingOverlay;