"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7313/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx" (2 Jun 2023, 755 Bytes) of package /linux/misc/jitsi-meet-7313.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 "ParticipantActionEllipsis.tsx": jitsi-meet_8319_vs_jitsi-meet_8615.

    1 import React from 'react';
    2 
    3 import { IconDotsHorizontal } from '../../../base/icons/svg';
    4 import Button from '../../../base/ui/components/web/Button';
    5 
    6 interface IProps {
    7 
    8     /**
    9      * Label used for accessibility.
   10      */
   11     accessibilityLabel: string;
   12 
   13     /**
   14      * Click handler function.
   15      */
   16     onClick: () => void;
   17 
   18     participantID?: string;
   19 }
   20 
   21 const ParticipantActionEllipsis = ({ accessibilityLabel, onClick, participantID }: IProps) => (
   22     <Button
   23         accessibilityLabel = { accessibilityLabel }
   24         icon = { IconDotsHorizontal }
   25         onClick = { onClick }
   26         size = 'small'
   27         testId = { participantID ? `participant-more-options-${participantID}` : undefined } />
   28 );
   29 
   30 export default ParticipantActionEllipsis;