MCPcopy
hub / github.com/truelockmc/streambert / handleContextMenu

Function handleContextMenu

src/components/Sidebar.jsx:47–52  ·  view source on GitHub ↗
(e, item)

Source from the content-addressed store, hash-verified

45 }, []);
46
47 const handleContextMenu = (e, item) => {
48 e.preventDefault();
49 e.stopPropagation();
50 setTooltip(null);
51 setContextMenu({ item, x: e.clientX, y: e.clientY });
52 };
53
54 const handleDragStart = (e, index) => {
55 dragItem.current = index;

Callers 1

SidebarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected