import{r as h,j as l,b as o,bv as p,o as m,a2 as u,R as b,bk as g,bl as x,b2 as f,F as k}from"./index-DlNZgIG9.js";const y=({actions:s,size:t="small"})=>{const[i,n]=h.useState(null),a=!!i,e=s.filter(r=>!r.hidden);return e.length===0?null:l(k,{children:[o(m,{size:t,onClick:r=>{r.stopPropagation(),n(r.currentTarget)},children:o(p,{fontSize:t})}),o(f,{anchorEl:i,open:a,onClose:()=>n(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{mt:.5,minWidth:180,borderRadius:1.5,boxShadow:"0 4px 16px rgba(15,23,42,0.1)"}},children:e.map((r,c)=>[r.divider&&c>0?o(u,{},`d-${r.key}`):null,l(b,{disabled:r.disabled,onClick:d=>{d.stopPropagation(),n(null),r.onClick()},sx:{fontSize:13,color:r.danger?"error.main":"text.primary"},children:[r.icon&&o(g,{sx:{color:"inherit",minWidth:32},children:r.icon}),o(x,{primaryTypographyProps:{fontSize:13},children:r.label})]},r.key)])})]})};export{y as R};
