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

AudioMutedIndicator.js 963B

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