import { ThunkDispatch } from 'redux-thunk' ; import { AnyAction } from 'redux' ; import { connect } from 'react-redux' ; import { updateEditShape } from '../../../actions' ; import { MapStoreState } from '../../../reducers/store' ; import { DrawControl } from './draw_control' ; import { DRAW_SHAPE } from '../../../../common/constants' ; function mapDispatchToProps ( dispatch ) { return { updateEditShape ( shapeToDraw ) { dispatch ( updateEditShape ( shapeToDraw ) ) ; } , } ; } const connected = connect ( null , mapDispatchToProps ) ( DrawControl ) ; export { connected as DrawControl } ;