import React from 'react'; import { connect } from 'react-redux'; import { NODE_BASE_SIZE } from '../constants/styles'; function NodeShapeStack(props) { const shift = props.contrastMode ? 0.15 : 0.1; const highlightScale = [1, 1 + shift]; const dy = NODE_BASE_SIZE * shift; const Shape = props.shape; return ( ); } function mapStateToProps(state) { return { contrastMode: state.get('contrastMode') }; } export default connect(mapStateToProps)(NodeShapeStack);