import React, { PropTypes } from 'react'; import notificationInterface from '../../interfaces/notification'; const baseClass = 'flash-message'; const FlashMessage = ({ notification, onRemoveFlash, onUndoActionClick }) => { const { alertType, isVisible, message, undoAction } = notification; if (!isVisible) { return false; } return (
{message}
); }; FlashMessage.propTypes = { notification: notificationInterface, onRemoveFlash: PropTypes.func, onUndoActionClick: PropTypes.func, }; export default FlashMessage;