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.2KB

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