6.1.0
const showContextMenu = useContextMenu();// ...return ( <Picture image={image} onContextMenu={showContextMenu([ { key: 'copy', icon: <IconCopy size={16} />, onClick: () => copyImageToClipboard(src), }, { key: 'download', icon: <IconDownload size={16} />, onClick: () => downloadImage(src), }, { key: 'delete', color: 'red', icon: <IconTrash size={16} />, onClick: handleDelete, }, ])} />);