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

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