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

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