You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | import React from 'react'; | 
					
						
							|  |  |  | import styled from 'styled-components'; | 
					
						
							|  |  |  | import { SessionIcon, SessionIconType } from '../../../../icon'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const NotificationBubbleFlex = styled.div`
 | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   background: var(--message-bubbles-received-background-color); | 
					
						
							|  |  |  |   color: var(--text-primary-color); | 
					
						
							|  |  |  |   width: 90%; | 
					
						
							|  |  |  |   max-width: 700px; | 
					
						
							|  |  |  |   margin: 10px auto; | 
					
						
							|  |  |  |   padding: 5px 10px; | 
					
						
							|  |  |  |   border-radius: 16px; | 
					
						
							|  |  |  |   word-break: break-word; | 
					
						
							|  |  |  |   text-align: center; | 
					
						
							|  |  |  |   align-items: center; | 
					
						
							|  |  |  | `;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const NotificationBubbleText = styled.div`
 | 
					
						
							|  |  |  |   color: inherit; | 
					
						
							|  |  |  |   margin: auto auto; | 
					
						
							|  |  |  | `;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const NotificationBubbleIconContainer = styled.div`
 | 
					
						
							|  |  |  |   margin: auto 10px; | 
					
						
							|  |  |  |   width: 15px; | 
					
						
							|  |  |  |   height: 25px; | 
					
						
							|  |  |  | `;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export const NotificationBubble = (props: { | 
					
						
							|  |  |  |   notificationText: string; | 
					
						
							|  |  |  |   iconType?: SessionIconType; | 
					
						
							|  |  |  |   iconColor?: string; | 
					
						
							|  |  |  | }) => { | 
					
						
							|  |  |  |   const { notificationText, iconType, iconColor } = props; | 
					
						
							|  |  |  |   return ( | 
					
						
							|  |  |  |     <NotificationBubbleFlex> | 
					
						
							|  |  |  |       {iconType && ( | 
					
						
							|  |  |  |         <NotificationBubbleIconContainer> | 
					
						
							|  |  |  |           <SessionIcon | 
					
						
							|  |  |  |             iconSize="small" | 
					
						
							|  |  |  |             iconType={iconType} | 
					
						
							|  |  |  |             iconColor={iconColor} | 
					
						
							|  |  |  |             iconPadding="auto 10px" | 
					
						
							|  |  |  |           /> | 
					
						
							|  |  |  |         </NotificationBubbleIconContainer> | 
					
						
							|  |  |  |       )} | 
					
						
							|  |  |  |       <NotificationBubbleText>{notificationText}</NotificationBubbleText> | 
					
						
							|  |  |  |       {iconType && <NotificationBubbleIconContainer />} | 
					
						
							|  |  |  |     </NotificationBubbleFlex> | 
					
						
							|  |  |  |   ); | 
					
						
							|  |  |  | }; |