1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import React, { Component } from 'react';
-
- import BaseIndicator from './BaseIndicator';
-
- /**
- * Thumbnail badge showing that the participant would like to speak.
- *
- * @extends Component
- */
- class RaisedHandIndicator extends Component {
- /**
- * {@code RaisedHandIndicator} component's property types.
- *
- * @static
- */
- static propTypes = {
- /**
- * The font-size for the icon.
- *
- * @type {number}
- */
- iconSize: React.PropTypes.number,
-
- /**
- * From which side of the indicator the tooltip should appear from.
- */
- tooltipPosition: React.PropTypes.string
- };
-
- /**
- * Implements React's {@link Component#render()}.
- *
- * @inheritdoc
- */
- render() {
- return (
- <BaseIndicator
- className = 'raisehandindicator indicator show-inline'
- iconClassName = 'icon-raised-hand indicatoricon'
- iconSize = { `${this.props.iconSize}px` }
- tooltipKey = 'raisedHand'
- tooltipPosition = { this.props.tooltipPosition } />
- );
- }
- }
-
- export default RaisedHandIndicator;
|