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

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