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.
		
		
		
		
		
			
		
			
	
	
		
			30 lines
		
	
	
		
			738 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			738 B
		
	
	
	
		
			TypeScript
		
	
| 
											6 years ago
										 | import React from 'react'; | ||
| 
											6 years ago
										 | import classNames from 'classnames'; | ||
|  | import { Picker } from 'emoji-mart'; | ||
| 
											4 years ago
										 | import { Constants } from '../../session'; | ||
| 
											6 years ago
										 | 
 | ||
| 
											4 years ago
										 | type Props = { | ||
| 
											6 years ago
										 |   onEmojiClicked: (emoji: any) => void; | ||
|  |   show: boolean; | ||
| 
											4 years ago
										 | }; | ||
| 
											6 years ago
										 | 
 | ||
| 
											4 years ago
										 | export const SessionEmojiPanel = (props: Props) => { | ||
|  |   const { onEmojiClicked, show } = props; | ||
| 
											6 years ago
										 | 
 | ||
| 
											4 years ago
										 |   return ( | ||
|  |     <div className={classNames('session-emoji-panel', show && 'show')}> | ||
|  |       <Picker | ||
|  |         backgroundImageFn={() => './images/emoji/emoji-sheet-twitter-32.png'} | ||
|  |         set={'twitter'} | ||
|  |         sheetSize={32} | ||
|  |         darkMode={true} | ||
|  |         color={Constants.UI.COLORS.GREEN} | ||
|  |         showPreview={true} | ||
|  |         title={''} | ||
|  |         onSelect={onEmojiClicked} | ||
|  |         autoFocus={true} | ||
|  |       /> | ||
|  |     </div> | ||
|  |   ); | ||
|  | }; |