You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScreenShareIndicator.js 845B

123456789101112131415161718192021222324252627282930313233
  1. // @flow
  2. import React from 'react';
  3. import { IconShareDesktop } from '../../../base/icons';
  4. import { BaseIndicator } from '../../../base/react';
  5. type Props = {
  6. /**
  7. * From which side of the indicator the tooltip should appear from.
  8. */
  9. tooltipPosition: string
  10. };
  11. /**
  12. * React {@code Component} for showing a screen-sharing icon with a tooltip.
  13. *
  14. * @param {Props} props - React props passed to this component.
  15. * @returns {React$Element<any>}
  16. */
  17. export default function ScreenShareIndicator(props: Props) {
  18. return (
  19. <BaseIndicator
  20. className = 'screenShare toolbar-icon'
  21. icon = { IconShareDesktop }
  22. iconId = 'share-desktop'
  23. iconSize = { 13 }
  24. tooltipKey = 'videothumbnail.videomute'
  25. tooltipPosition = { props.tooltipPosition } />
  26. );
  27. }