Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DominantSpeakerIndicator.js 1.2KB

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