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. 
		
		
		
		
		
			
	
	
		
			
	
		
			This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
		 
	
		
		
			
				
				
					
						
						
						
							import  React  from  'react' ; 
 
						
						
						
							
 
						
						
						
							import  {  SessionModal  }  from  './SessionModal' ; 
 
						
						
						
							import  {  SessionButton ,  SessionButtonColor  }  from  './SessionButton' ; 
 
						
						
						
							import  {  DefaultTheme ,  withTheme  }  from  'styled-components' ; 
 
						
						
						
							import  {  SessionIcon ,  SessionIconSize ,  SessionIconType  }  from  './icon' ; 
 
						
						
						
							import  {  deleteAccount  }  from  '../../util/accountManager' ; 
 
						
						
						
							
 
						
						
						
							type  Props  =  { 
 
						
						
						
							  onClose : any ; 
 
						
						
						
							  theme : DefaultTheme ; 
 
						
						
						
							} ; 
 
						
						
						
							/* tslint:disable:use-simple-attributes */ 
 
						
						
						
							
 
						
						
						
							const  SessionIDResetDialogInner  =  ( props : Props )  = >  { 
 
						
						
						
							  const  description  = 
 
						
						
						
							    'We’   
						
						
						
							    Your existing contacts and conversations will be lost, but you’  ; 
 
						
						
						
							
 
						
						
						
							  return  ( 
 
						
						
						
							    < SessionModal 
 
						
						
						
							      title = "Mandatory Upgrade Session ID" 
 
						
						
						
							      onClose = { ( )  = >  null } 
 
						
						
						
							      theme = { props . theme } 
 
						
						
						
							    > 
 
						
						
						
							      < div  className = "spacer-sm"  / > 
 
						
						
						
							      < div  className = "session-modal__centered text-center" > 
 
						
						
						
							        < SessionIcon 
 
						
						
						
							          iconType = { SessionIconType . Shield } 
 
						
						
						
							          iconSize = { SessionIconSize . Max } 
 
						
						
						
							          theme = { props . theme } 
 
						
						
						
							        / > 
 
						
						
						
							        < div  className = "spacer-lg"  / > 
 
						
						
						
							
 
						
						
						
							        { description } 
 
						
						
						
							        < div  className = "spacer-xs"  / > 
 
						
						
						
							      < / div > 
 
						
						
						
							      < div  className = "spacer-lg"  / > 
 
						
						
						
							
 
						
						
						
							      < div  className = "session-modal__button-group" > 
 
						
						
						
							        < SessionButton 
 
						
						
						
							          text = "Upgrade Now" 
 
						
						
						
							          onClick = { ( )  = >  { 
 
						
						
						
							            void  deleteAccount ( 'Session ID Upgrade' ) ; 
 
						
						
						
							            props . onClose ( ) ; 
 
						
						
						
							          } } 
 
						
						
						
							          buttonColor = { SessionButtonColor . Danger } 
 
						
						
						
							        / > 
 
						
						
						
							      < / div > 
 
						
						
						
							    < / SessionModal > 
 
						
						
						
							  ) ; 
 
						
						
						
							} ; 
 
						
						
						
							
 
						
						
						
							export  const  SessionIDResetDialog  =  withTheme ( SessionIDResetDialogInner ) ;