snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import React, { useCallback } from 'react';
|
||||
|
||||
import ContextMenuItem from '../../../base/ui/components/web/ContextMenuItem';
|
||||
|
||||
const CustomOptionButton = (
|
||||
{ icon: iconSrc, onClick, text }:
|
||||
{
|
||||
icon: string;
|
||||
onClick: (e?: React.MouseEvent<Element, MouseEvent> | undefined) => void;
|
||||
text: string;
|
||||
}
|
||||
) => {
|
||||
|
||||
const icon = useCallback(props => (<img
|
||||
src = { iconSrc }
|
||||
{ ...props } />), [ iconSrc ]);
|
||||
|
||||
return (
|
||||
<ContextMenuItem
|
||||
accessibilityLabel = { text }
|
||||
icon = { icon }
|
||||
onClick = { onClick }
|
||||
text = { text } />
|
||||
);
|
||||
};
|
||||
|
||||
export default CustomOptionButton;
|
||||
Reference in New Issue
Block a user