You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RaisedHandIndicator.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import BaseIndicator from './BaseIndicator';
  4. /**
  5. * The type of the React {@code Component} props of {@link RaisedHandIndicator}.
  6. */
  7. type Props = {
  8. /**
  9. * The font-size for the icon.
  10. */
  11. iconSize: number,
  12. /**
  13. * From which side of the indicator the tooltip should appear from.
  14. */
  15. tooltipPosition: string
  16. };
  17. /**
  18. * Thumbnail badge showing that the participant would like to speak.
  19. *
  20. * @extends Component
  21. */
  22. class RaisedHandIndicator extends Component<Props> {
  23. /**
  24. * Implements React's {@link Component#render()}.
  25. *
  26. * @inheritdoc
  27. */
  28. render() {
  29. return (
  30. <BaseIndicator
  31. className = 'raisehandindicator indicator show-inline'
  32. iconClassName = 'icon-raised-hand indicatoricon'
  33. iconSize = { `${this.props.iconSize}px` }
  34. tooltipKey = 'raisedHand'
  35. tooltipPosition = { this.props.tooltipPosition } />
  36. );
  37. }
  38. }
  39. export default RaisedHandIndicator;