您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DominantSpeakerIndicator.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import React, { Component } from 'react';
  2. import BaseIndicator from './BaseIndicator';
  3. /**
  4. * Thumbnail badge showing that the participant is the dominant speaker in
  5. * the conference.
  6. *
  7. * @extends Component
  8. */
  9. class DominantSpeakerIndicator extends Component {
  10. /**
  11. * {@code DominantSpeakerIndicator} 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: React.PropTypes.number,
  22. /**
  23. * From which side of the indicator the tooltip should appear from.
  24. */
  25. tooltipPosition: React.PropTypes.string
  26. };
  27. /**
  28. * Implements React's {@link Component#render()}.
  29. *
  30. * @inheritdoc
  31. */
  32. render() {
  33. return (
  34. <BaseIndicator
  35. className = 'indicator show-inline'
  36. iconClassName = 'indicatoricon fa fa-bullhorn'
  37. iconSize = { `${this.props.iconSize}px` }
  38. id = 'dominantspeakerindicator'
  39. tooltipKey = 'speaker'
  40. tooltipPosition = { this.props.tooltipPosition } />
  41. );
  42. }
  43. }
  44. export default DominantSpeakerIndicator;