{/* Top level Controls */}
{/* Scroll of clicked nodes' details */}
);
};
function mapStateToProps(state) {
return {
expandGraphActive: state.expand_graph_checked,
dataFetchInProgress: state.data_fetch_in_progress,
graph3DActive: state.graph_3d,
graphVizRef: state.graph_component_ref,
current_regraph_layout: state.current_regraph_layout,
regraph_layout_list: state.regraph_layout_list,
};
}
function mapDispatchToProps(dispatch) {
return {
handleClearGraphData: () => dispatch(actionCreators.clearGraphData()),
expandGraphToggle: expandGraphToggle => dispatch(actionCreators.toggleExpandGraph(expandGraphToggle)),
refreshGraph: newLayout => dispatch(actionCreators.refreshGraph(newLayout)),
};
}
export default connect(mapStateToProps, mapDispatchToProps)(GraphVizControls);