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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* @flow */
  2. import React from 'react';
  3. import { BaseIndicator } from '../../../base/react';
  4. import { connect } from '../../../base/redux';
  5. import AbstractRaisedHandIndicator, {
  6. type Props as AbstractProps,
  7. _mapStateToProps
  8. } from '../AbstractRaisedHandIndicator';
  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. * Renders the platform specific indicator element.
  30. *
  31. * @returns {React$Element<*>}
  32. */
  33. _renderIndicator() {
  34. return (
  35. <BaseIndicator
  36. className = 'raisehandindicator indicator show-inline'
  37. iconClassName = 'icon-raised-hand indicatoricon'
  38. iconSize = { `${this.props.iconSize}px` }
  39. tooltipKey = 'raisedHand'
  40. tooltipPosition = { this.props.tooltipPosition } />
  41. );
  42. }
  43. }
  44. export default connect(_mapStateToProps)(RaisedHandIndicator);