import{r as m,j as e}from"./@radix-Cdvw4jJ8.js";import{as as p,at as d,an as g}from"./index-BgEfQ3_G.js";const h=m.forwardRef((r,n)=>{const{triggerChildren:a,children:t,onSelect:o,onOpenChange:i,icon:x,open:s,...l}=r;return e.jsxs(p,{open:s,onOpenChange:i,children:[e.jsx(d,{asChild:!0,children:e.jsx(g,{...l,className:"hover:cursor-pointer",icon:r.icon,ref:n,onSelect:c=>{c.preventDefault(),o&&o()},children:a})}),t]})});h.displayName="DialogItem";export{h as D};
