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.

AudioMutedIndicator.js 992B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import React, { Component } from 'react';
  2. import BaseIndicator from './BaseIndicator';
  3. /**
  4. * React {@code Component} for showing an audio muted icon with a tooltip.
  5. *
  6. * @extends Component
  7. */
  8. class AudioMutedIndicator extends Component {
  9. /**
  10. * {@code AudioMutedIndicator} component's property types.
  11. *
  12. * @static
  13. */
  14. static propTypes = {
  15. /**
  16. * From which side of the indicator the tooltip should appear from.
  17. */
  18. tooltipPosition: React.PropTypes.string
  19. };
  20. /**
  21. * Implements React's {@link Component#render()}.
  22. *
  23. * @inheritdoc
  24. * @returns {ReactElement}
  25. */
  26. render() {
  27. return (
  28. <BaseIndicator
  29. className = 'audioMuted toolbar-icon'
  30. iconClassName = 'icon-mic-disabled'
  31. tooltipKey = 'videothumbnail.mute'
  32. tooltipPosition = { this.props.tooltipPosition } />
  33. );
  34. }
  35. }
  36. export default AudioMutedIndicator;