選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AudioMutedIndicator.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { IconMicDisabled } from '../../../base/icons';
  4. import { BaseIndicator } from '../../../base/react';
  5. /**
  6. * The type of the React {@code Component} props of {@link AudioMutedIndicator}.
  7. */
  8. type Props = {
  9. /**
  10. * From which side of the indicator the tooltip should appear from.
  11. */
  12. tooltipPosition: string
  13. };
  14. /**
  15. * React {@code Component} for showing an audio muted icon with a tooltip.
  16. *
  17. * @extends Component
  18. */
  19. class AudioMutedIndicator extends Component<Props> {
  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. icon = { IconMicDisabled }
  31. iconId = 'mic-disabled'
  32. iconSize = { 13 }
  33. tooltipKey = 'videothumbnail.mute'
  34. tooltipPosition = { this.props.tooltipPosition } />
  35. );
  36. }
  37. }
  38. export default AudioMutedIndicator;