import{j as r}from"./ui-vendor-Cn57k9R1.js";import{d as a,ag as i,ah as d,ai as u,aj as t,ak as m,e as x}from"./index-DT-X9ySe.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h=a("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),j=({actions:s})=>{const o=s.some(e=>e.variant==="destructive"),c=s.filter(e=>e.variant!=="destructive"),l=s.filter(e=>e.variant==="destructive");return r.jsxs(i,{children:[r.jsx(d,{asChild:!0,children:r.jsx("button",{className:"p-1.5 rounded hover:bg-muted/50 text-muted-foreground hover:text-foreground transition-colors",children:r.jsx(h,{className:"w-4 h-4"})})}),r.jsxs(u,{align:"end",className:"w-40",children:[c.map(e=>{const n=r.jsxs(r.Fragment,{children:[e.icon&&r.jsx(e.icon,{className:"w-4 h-4 mr-2"}),e.label]});return e.href?r.jsx(t,{asChild:!0,children:r.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"flex items-center font-body text-sm",children:n})},e.label):r.jsx(t,{onClick:e.onClick,className:"font-body text-sm cursor-pointer",children:n},e.label)}),o&&r.jsx(m,{}),l.map(e=>r.jsxs(t,{onClick:e.onClick,className:x("font-body text-sm cursor-pointer text-destructive focus:text-destructive"),children:[e.icon&&r.jsx(e.icon,{className:"w-4 h-4 mr-2"}),e.label]},e.label))]})]})};export{j as A};
