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;