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

VideoMutedIndicator.js 998B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import PropTypes from 'prop-types';
  2. import React, { Component } from 'react';
  3. import BaseIndicator from './BaseIndicator';
  4. /**
  5. * React {@code Component} for showing a video muted icon with a tooltip.
  6. *
  7. * @extends Component
  8. */
  9. class VideoMutedIndicator extends Component {
  10. /**
  11. * {@code VideoMutedIndicator} 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. */
  26. render() {
  27. return (
  28. <BaseIndicator
  29. className = 'videoMuted toolbar-icon'
  30. iconClassName = 'icon-camera-disabled'
  31. tooltipKey = 'videothumbnail.videomute'
  32. tooltipPosition = { this.props.tooltipPosition } />
  33. );
  34. }
  35. }
  36. export default VideoMutedIndicator;