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

DominantSpeakerIndicator.js 1.1KB

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