import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faBan, faCheck, faCircle, faExclamationTriangle, } from '@fortawesome/free-solid-svg-icons'; import { Alert, Button } from 'reactstrap'; class NotificationList extends React.Component { static getIcon(severity) { // TODO: Move this and the usage in NotificationsMenu to a shared component. switch (severity) { case 'danger': return faBan; case 'warning': return faExclamationTriangle; case 'darker-info': return faCircle; case 'success': return faCheck; } } render() { const { notifications, clearNotification } = this.props; return (