import { FC } from 'react'; import { NotificationBubbleItem, OpenUrl } from '../../../../api'; import { Flex, LayoutNotificationBubbleView, LayoutNotificationBubbleViewProps, Text } from '../../../../common'; export interface NotificationDefaultBubbleViewProps extends LayoutNotificationBubbleViewProps { item: NotificationBubbleItem; } export const NotificationDefaultBubbleView: FC = props => { const { item = null, onClose = null, ...rest } = props; const htmlText = item.message.replace(/\r\n|\r|\n/g, '
'); return ( (item.linkUrl && item.linkUrl.length && OpenUrl(item.linkUrl)) } onClose={ onClose } { ...rest }> { (item.iconUrl && item.iconUrl.length) && } ); };