Files
ohif-viewer/src/connectedComponents/ConnectedToolbarRow.js
T

15 lines
465 B
JavaScript
Raw Normal View History

2019-07-04 14:09:13 -04:00
// TODO: REPLACE THIS WITH A CONTEXT PROVIDER
// EVERYTHING IN `VIEWER.JS` COULD USE THIS FOR APPROPRIATE CONTEXT
import ToolbarRow from './ToolbarRow';
2019-05-31 11:55:44 -04:00
import { connect } from 'react-redux';
2019-06-17 14:20:32 -04:00
import { getActiveContexts } from './../store/layout/selectors.js';
const mapStateToProps = state => {
2019-05-29 08:39:54 -04:00
return {
2019-06-17 14:20:32 -04:00
activeContexts: getActiveContexts(state),
2019-05-29 08:39:54 -04:00
};
};
2019-07-04 14:09:13 -04:00
const ConnectedToolbarRow = connect(mapStateToProps)(ToolbarRow);
export default ConnectedToolbarRow;