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.

DominantSpeakerIndicator.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. /**
  24. * Implements React's {@link Component#render()}.
  25. *
  26. * @inheritdoc
  27. */
  28. render() {
  29. return (
  30. <BaseIndicator
  31. className = 'indicator show-inline'
  32. iconClassName = 'indicatoricon fa fa-bullhorn'
  33. iconSize = { `${this.props.iconSize}px` }
  34. id = 'dominantspeakerindicator'
  35. tooltipKey = 'speaker' />
  36. );
  37. }
  38. }
  39. export default DominantSpeakerIndicator;