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.tsx 897B

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