jiti-meet/react/features/filmstrip/components/web/AudioMutedIndicator.js

35 lines
835 B
JavaScript
Raw Normal View History

/* @flow */
import React from 'react';
import { IconMicrophoneEmptySlash } from '../../../base/icons';
2019-04-15 16:23:28 +00:00
import { BaseIndicator } from '../../../base/react';
/**
* The type of the React {@code Component} props of {@link AudioMutedIndicator}.
*/
type Props = {
/**
* From which side of the indicator the tooltip should appear from.
*/
tooltipPosition: string
};
/**
* React {@code Component} for showing an audio muted icon with a tooltip.
*
* @returns {Component}
*/
const AudioMutedIndicator = ({ tooltipPosition }: Props) => (
<BaseIndicator
icon = { IconMicrophoneEmptySlash }
iconId = 'mic-disabled'
iconSize = { 15 }
id = 'audioMuted'
tooltipKey = 'videothumbnail.mute'
tooltipPosition = { tooltipPosition } />
);
export default AudioMutedIndicator;