pauseTimer(notification),
- onMouseLeave: () => resumeTimer(notification),
- }
- : {})}
- onClose={notification.close}
- title={
- (notification.message.apiMessage && !notification.message.title
- ? intl.formatMessage(commonMessages.defaultErrorTitle)
- : notification.message.title) as string
- }
- type={notification.message.status || "info"}
- content={notification.message.text}
- apiMessage={
- (notification.message.apiMessage && {
- apiMessageContent: (
-
- {notification.message.apiMessage}
-
- ),
- hideApiLabel: intl.formatMessage(notificationMessages.hideError),
- showApiLabel: intl.formatMessage(notificationMessages.seeError),
- }) as ApiMessageData
- }
- {...(notification.message.actionBtn
- ? {
- action: {
- label: notification.message.actionBtn.label,
- onClick: notification.message.actionBtn.action,
- },
- }
- : {})}
- className={classes.notification}
- />
-