import{a as s}from"./chunk-UG6FE2XS.mjs";import"react";import{IconButton as r}from"@baseapp-frontend/design-system/components/web/buttons";import{TrashCanIcon as O}from"@baseapp-frontend/design-system/components/web/icons";import{jsx as t,jsxs as k}from"react/jsx-runtime";var I=function(e){var c=e.offsetRight,d=e.offsetTop,m=e.showDeleteButton,h=e.isDeletingItem,u=e.disableDeleteButton,p=e.handleDeleteDialogOpen,n=e.actions,l=n===void 0?[]:n,f=e.handleLongPressItemOptionsClose;return k(s,{offsetRight:c,offsetTop:d,"aria-label":"actions overlay",children:[m&&t(r,{onClick:p,disabled:h||u,"aria-label":"delete item",children:t(O,{})}),l?.map(function(o){var a=o.label,v=o.icon,i=o.onClick,C=o.disabled,D=o.hasPermission,b=o.closeOnClick;if(!D)return null;var g=function(){i?.(),b&&f()};return t(r,{onClick:g,disabled:C,"aria-label":a,children:v},a)})]})},H=I;export{H as a};
//# sourceMappingURL=chunk-5PNMVXO4.mjs.map