import{s as e}from"./utils-BO1RPuol.js";import{t}from"./pencil-BqU8IP9o.js";import{t as n}from"./trash-2-C4tYX-tx.js";import{Aa as r,Da as i,Io as a,Oa as o,ka as s,za as c}from"./index-B4NicEaS.js";import{t as l}from"./approval-actions-CXlnFwTH.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)(s,{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)(i,{children:[(0,u.jsx)(r,{asChild:!0,children:(0,u.jsx)(c,{variant:`ghost`,size:`icon`,className:`size-8`,onClick:e,children:(0,u.jsx)(a,{className:`size-4`})})}),(0,u.jsx)(o,{children:`View`})]}),d&&(0,u.jsxs)(i,{children:[(0,u.jsx)(r,{asChild:!0,children:(0,u.jsx)(c,{variant:`ghost`,size:`icon`,className:`size-8`,onClick:d,children:(0,u.jsx)(t,{className:`size-4`})})}),(0,u.jsx)(o,{children:`Edit`})]}),f&&(0,u.jsxs)(i,{children:[(0,u.jsx)(r,{asChild:!0,children:(0,u.jsx)(c,{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)(o,{children:`Delete`})]})]})})}export{d as t};