"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7319/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx" (6 Jun 2023, 1881 Bytes) of package /linux/misc/jitsi-meet-7319.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TSX (TypeScript with React) source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "VideoMenuTriggerButton.tsx": jitsi-meet_8319_vs_jitsi-meet_8615.

    1 import React from 'react';
    2 
    3 import LocalVideoMenuTriggerButton from '../../../video-menu/components/web/LocalVideoMenuTriggerButton';
    4 import RemoteVideoMenuTriggerButton from '../../../video-menu/components/web/RemoteVideoMenuTriggerButton';
    5 
    6 interface IProps {
    7 
    8     /**
    9      * Hide popover callback.
   10      */
   11     hidePopover?: Function;
   12 
   13     /**
   14      * Whether or not the button is for the local participant.
   15      */
   16     local?: boolean;
   17 
   18     /**
   19      * The id of the participant for which the button is.
   20      */
   21     participantId?: string;
   22 
   23     /**
   24      * Whether popover is visible or not.
   25      */
   26     popoverVisible?: boolean;
   27 
   28     /**
   29      * Show popover callback.
   30      */
   31     showPopover?: Function;
   32 
   33     /**
   34      * The type of thumbnail.
   35      */
   36     thumbnailType: string;
   37 
   38     /**
   39      * Whether or not the component is visible.
   40      */
   41     visible: boolean;
   42 }
   43 
   44 // eslint-disable-next-line no-confusing-arrow
   45 const VideoMenuTriggerButton = ({
   46     hidePopover,
   47     local,
   48     participantId = '',
   49     popoverVisible,
   50     showPopover,
   51     thumbnailType,
   52     visible
   53 }: IProps) => local
   54     ? (
   55         <span id = 'localvideomenu'>
   56             <LocalVideoMenuTriggerButton
   57                 buttonVisible = { visible }
   58                 hidePopover = { hidePopover }
   59                 popoverVisible = { popoverVisible }
   60                 showPopover = { showPopover }
   61                 thumbnailType = { thumbnailType } />
   62         </span>
   63     )
   64     : (
   65         <span id = 'remotevideomenu'>
   66             <RemoteVideoMenuTriggerButton
   67                 buttonVisible = { visible }
   68                 hidePopover = { hidePopover }
   69                 participantID = { participantId }
   70                 popoverVisible = { popoverVisible }
   71                 showPopover = { showPopover }
   72                 thumbnailType = { thumbnailType } />
   73         </span>
   74     );
   75 
   76 export default VideoMenuTriggerButton;