import{o as e}from"./utils-Dac180Gn.js";import{t}from"./pencil-COtUf-LL.js";import{t as n}from"./trash-2-D_alEpce.js";import{aa as r,ga as i,ia as a,oa as o,po as s,sa as c}from"./index-8M5AnKdQ.js";import{t as l}from"./approval-actions-DYnhcmXF.js";var u=e();function d({onView:e,onEdit:d,onDelete:f,approval:p}){return(0,u.jsx)(`div`,{className:`flex items-center gap-0.5`,onClick:e=>e.stopPropagation(),children:(0,u.jsxs)(o,{delayDuration:200,children:[p&&(0,u.jsx)(l,{entityType:p.entityType,objectId:p.objectId,contentTypeId:p.contentTypeId,authorizedStatus:p.authorizedStatus,onApprovalChange:p.onApprovalChange}),e&&(0,u.jsxs)(a,{children:[(0,u.jsx)(c,{asChild:!0,children:(0,u.jsx)(i,{variant:`ghost`,size:`icon`,className:`size-8`,onClick:e,children:(0,u.jsx)(s,{className:`size-4`})})}),(0,u.jsx)(r,{children:`View`})]}),d&&(0,u.jsxs)(a,{children:[(0,u.jsx)(c,{asChild:!0,children:(0,u.jsx)(i,{variant:`ghost`,size:`icon`,className:`size-8`,onClick:d,children:(0,u.jsx)(t,{className:`size-4`})})}),(0,u.jsx)(r,{children:`Edit`})]}),f&&(0,u.jsxs)(a,{children:[(0,u.jsx)(c,{asChild:!0,children:(0,u.jsx)(i,{variant:`ghost`,size:`icon`,className:`size-8 text-destructive hover:text-destructive`,onClick:f,children:(0,u.jsx)(n,{className:`size-4`})})}),(0,u.jsx)(r,{children:`Delete`})]})]})})}export{d as t};