mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
33 lines
825 B
JavaScript
33 lines
825 B
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { IconScreenshare } from '../../../base/icons/svg';
|
|
import BaseIndicator from '../../../base/react/components/web/BaseIndicator';
|
|
|
|
|
|
type Props = {
|
|
|
|
/**
|
|
* From which side of the indicator the tooltip should appear from.
|
|
*/
|
|
tooltipPosition: string
|
|
};
|
|
|
|
/**
|
|
* React {@code Component} for showing a screen-sharing icon with a tooltip.
|
|
*
|
|
* @param {Props} props - React props passed to this component.
|
|
* @returns {React$Element<any>}
|
|
*/
|
|
export default function ScreenShareIndicator(props: Props) {
|
|
return (
|
|
<BaseIndicator
|
|
icon = { IconScreenshare }
|
|
iconId = 'share-desktop'
|
|
iconSize = { 16 }
|
|
tooltipKey = 'videothumbnail.screenSharing'
|
|
tooltipPosition = { props.tooltipPosition } />
|
|
);
|
|
}
|