import React from 'react'; import { I18n } from '@lingui/react'; import { t } from '@lingui/macro'; import { Link } from 'react-router-dom'; import { Badge, Switch } from '@patternfly/react-core'; class NotificationListItem extends React.Component { render () { const { itemId, name, notificationType, detailUrl, successTurnedOn, errorTurnedOn, toggleNotification } = this.props; const capText = { textTransform: 'capitalize' }; return ( {({ i18n }) => (
  • {name}
    {notificationType}
    toggleNotification(itemId, successTurnedOn, 'success')} aria-label={i18n._(t`Notification success toggle`)} /> toggleNotification(itemId, errorTurnedOn, 'error')} aria-label={i18n._(t`Notification failure toggle`)} />
  • )}
    ); } } export default NotificationListItem;