text: // @flow
  import { connect } from 'react-redux';
  
  import TextFieldComponent from '../Components/TextFieldComponent';
  import { regxpFlowUpdateDescription } from '../Store/Actions/RegexpFlowActions';
  import type { Dispatch } from 'redux';
  
  const mapStateToProps = state => ({
      value: state.app.currentRegexpFlow.description,
  });
  
  const mapDispatchToProps = (dispatch: Dispatch<{ type: $Subtype<string> }>) => ({
      onValueChange: description => {
          dispatch(regxpFlowUpdateDescription(description));
      },
  });
  
  const RegexpFlowDescriptionContainer = connect(mapStateToProps, mapDispatchToProps)(TextFieldComponent);
  
  export default RegexpFlowDescriptionContainer;
  