Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DominantSpeakerIndicator.js 1.2KB

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