import React, { PropTypes } from 'react'; import { hideFlash } from '../../redux/nodes/notifications/actions'; import notificationInterface from '../../interfaces/notification'; const baseClass = 'flash-message'; const FlashMessage = ({ notification, dispatch }) => { const { alertType, isVisible, message, undoAction } = notification; const submitUndoAction = () => { dispatch(undoAction); dispatch(hideFlash); return false; }; const removeFlashMessage = () => { dispatch(hideFlash); return false; }; if (!isVisible) { return false; } return (