import{s as e}from"./utils-CXcsdpX-.js";import{t}from"./pencil-hHQSbk2R.js";import{t as n}from"./trash-2-DKuDAThN.js";import{Aa as r,Da as i,Fo as a,Oa as o,ka as s,za as c}from"./index-Ct5uU080.js";import{t as l}from"./approval-actions-ynPgEknE.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};