6.1.0
const showContextMenu = useContextMenu();// ...return ( <Picture image={image} onContextMenu={showContextMenu([ { key: 'copy', title: 'Copy image to clipboard', onClick: () => copyImageToClipboard(src), }, { key: 'download', title: 'Download image to your computer', onClick: () => downloadImage(src), }, ])} />);