import t,{useEffect as i,useRef as a}from"react";var m=({onRemove:l,onSend:r,onEdit:u,onInfo:s,onClose:o})=>{let e=a(null);return i(()=>{let n=d=>{e.current&&!e.current.contains(d.target)&&o()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,o]),t.createElement("div",{ref:e,className:"absolute right-0 top-20 mt-2 w-48 bg-white shadow-lg rounded-md overflow-hidden"},t.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:l},"Remove"),t.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:r},"Send"),t.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:u},"Edit"),t.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:s},"Info"))},x=m;export{x as default};
//# sourceMappingURL=TokenContextMenu.mjs.map