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

AudioMutedIndicator.js 1022B

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