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.
		
		
		
		
		
			
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
| import React from 'react';
 | |
| import classNames from 'classnames';
 | |
| 
 | |
| import { Localizer } from '../../types/Util';
 | |
| 
 | |
| interface Props {
 | |
|   i18n: Localizer;
 | |
|   color?: string;
 | |
| }
 | |
| 
 | |
| export class TypingAnimation extends React.Component<Props> {
 | |
|   public render() {
 | |
|     const { i18n, color } = this.props;
 | |
| 
 | |
|     return (
 | |
|       <div className="module-typing-animation" title={i18n('typingAlt')}>
 | |
|         <div
 | |
|           className={classNames(
 | |
|             'module-typing-animation__dot',
 | |
|             'module-typing-animation__dot--first',
 | |
|             color ? `module-typing-animation__dot--${color}` : null
 | |
|           )}
 | |
|         />
 | |
|         <div className="module-typing-animation__spacer" />
 | |
|         <div
 | |
|           className={classNames(
 | |
|             'module-typing-animation__dot',
 | |
|             'module-typing-animation__dot--second',
 | |
|             color ? `module-typing-animation__dot--${color}` : null
 | |
|           )}
 | |
|         />
 | |
|         <div className="module-typing-animation__spacer" />
 | |
|         <div
 | |
|           className={classNames(
 | |
|             'module-typing-animation__dot',
 | |
|             'module-typing-animation__dot--third',
 | |
|             color ? `module-typing-animation__dot--${color}` : null
 | |
|           )}
 | |
|         />
 | |
|       </div>
 | |
|     );
 | |
|   }
 | |
| }
 |