2018-10-30 05:02:23 +00:00
|
|
|
/* @flow */
|
|
|
|
|
2017-07-10 22:29:44 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import BaseIndicator from './BaseIndicator';
|
|
|
|
|
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The type of the React {@code Component} props of {@link RaisedHandIndicator}.
|
2017-07-10 22:29:44 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
type Props = {
|
|
|
|
|
2017-07-10 22:29:44 +00:00
|
|
|
/**
|
2018-10-30 05:02:23 +00:00
|
|
|
* The font-size for the icon.
|
2017-07-10 22:29:44 +00:00
|
|
|
*/
|
2018-10-30 05:02:23 +00:00
|
|
|
iconSize: number,
|
2017-08-15 22:14:49 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* From which side of the indicator the tooltip should appear from.
|
|
|
|
*/
|
|
|
|
tooltipPosition: string
|
|
|
|
};
|
2017-07-10 22:29:44 +00:00
|
|
|
|
2018-10-30 05:02:23 +00:00
|
|
|
/**
|
|
|
|
* Thumbnail badge showing that the participant would like to speak.
|
|
|
|
*
|
|
|
|
* @extends Component
|
|
|
|
*/
|
|
|
|
class RaisedHandIndicator extends Component<Props> {
|
2017-07-10 22:29:44 +00:00
|
|
|
/**
|
|
|
|
* 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` }
|
2017-08-15 22:14:49 +00:00
|
|
|
tooltipKey = 'raisedHand'
|
|
|
|
tooltipPosition = { this.props.tooltipPosition } />
|
2017-07-10 22:29:44 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RaisedHandIndicator;
|