"use strict";var m=Object.create;var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var b=(t,e)=>{for(var o in e)s(t,o,{get:e[o],enumerable:!0})},i=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of x(e))!v.call(t,l)&&l!==o&&s(t,l,{get:()=>e[l],enumerable:!(r=c(e,l))||r.enumerable});return t};var g=(t,e,o)=>(o=t!=null?m(f(t)):{},i(e||!t||!t.__esModule?s(o,"default",{value:t,enumerable:!0}):o,t)),p=t=>i(s({},"__esModule",{value:!0}),t);var w={};b(w,{default:()=>k});module.exports=p(w);var n=g(require("react")),y=({onRemove:t,onSend:e,onEdit:o,onInfo:r,onClose:l})=>{let u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let d=a=>{u.current&&!u.current.contains(a.target)&&l()};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[u,l]),n.default.createElement("div",{ref:u,className:"absolute right-0 top-20 mt-2 w-48 bg-white shadow-lg rounded-md overflow-hidden"},n.default.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:t},"Remove"),n.default.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:e},"Send"),n.default.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:o},"Edit"),n.default.createElement("button",{className:"block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100",onClick:r},"Info"))},k=y;
//# sourceMappingURL=TokenContextMenu.js.map