2021-10-22 13:23:52 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { makeStyles } from '@material-ui/styles';
|
|
|
|
import React from 'react';
|
|
|
|
|
2021-09-14 15:31:30 +00:00
|
|
|
import { QuickActionButton } from '../../../base/components';
|
2021-10-22 13:23:52 +00:00
|
|
|
import { Icon, IconHorizontalPoints } from '../../../base/icons';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Label used for accessibility.
|
|
|
|
*/
|
|
|
|
accessibilityLabel: string,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Click handler function.
|
|
|
|
*/
|
|
|
|
onClick: Function
|
|
|
|
}
|
|
|
|
|
|
|
|
const useStyles = makeStyles(() => {
|
|
|
|
return {
|
|
|
|
button: {
|
|
|
|
padding: '6px'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
const ParticipantActionEllipsis = ({ accessibilityLabel, onClick }: Props) => {
|
|
|
|
const styles = useStyles();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<QuickActionButton
|
|
|
|
accessibilityLabel = { accessibilityLabel }
|
|
|
|
className = { styles.button }
|
|
|
|
onClick = { onClick }>
|
|
|
|
<Icon src = { IconHorizontalPoints } />
|
|
|
|
</QuickActionButton>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ParticipantActionEllipsis;
|