function flashMessage(dispatch, message) {
  const { text, type } = message;
  dispatch(addFlashMessage({text: text, type: type}));
  setTimeout(()=> {
    dispatch(addFlashMessage({text: null, type: null}));
  }, 2000)
}
// (flashMessage Helper not an action creator)
(flashMessage Helper not an action creator)
( flashMessage Helper not an action creator )
function flashMessage(dispatch, message) {
  const { text, type } = message;
  dispatch(addFlashMessage({text: text, type: type}));
  setTimeout(()=> {
    dispatch(addFlashMessage({text: null, type: null}));
  }, 2000)
}
function flashMessage ( dispatch , message ) { const { text , type } = message ; dispatch ( addFlashMessage ( { text : text , type : type } ) ) ; setTimeout ( ( ) => { dispatch ( addFlashMessage ( { text : null , type : null } ) ) ; } , 2000 ) }
(flashMessage Helper not an action creator)
( flashMessage Helper not an action creator )