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.
		
		
		
		
		
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			677 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			32 lines
		
	
	
		
			677 B
		
	
	
	
		
			TypeScript
		
	
| import React from 'react';
 | |
| 
 | |
| import { SessionIconButton, SessionIconSize, SessionIconType } from './icon';
 | |
| 
 | |
| interface Props {
 | |
|   onClick?: any;
 | |
|   show?: boolean;
 | |
| }
 | |
| 
 | |
| export class SessionScrollButton extends React.PureComponent<Props> {
 | |
|   constructor(props: any) {
 | |
|     super(props);
 | |
|   }
 | |
| 
 | |
|   public render() {
 | |
|     return (
 | |
|       <>
 | |
|         {this.props.show && (
 | |
|           <div className="session-scroll-button">
 | |
|             <SessionIconButton
 | |
|               iconType={SessionIconType.Chevron}
 | |
|               iconSize={SessionIconSize.Huge}
 | |
|               iconColor={'#FFFFFF'}
 | |
|               onClick={this.props.onClick}
 | |
|             />
 | |
|           </div>
 | |
|         )}
 | |
|       </>
 | |
|     );
 | |
|   }
 | |
| }
 |