import{jsx as r,jsxs as o,Fragment as l}from"react/jsx-runtime";import{A as c,a as p,b as d,c as g,d as m,e as A,f as h,g as u}from"./alert-dialog-xorwy8s8.js";import"react";import"@radix-ui/react-alert-dialog";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"./button-BvFBRYHq.js";import"@radix-ui/react-slot";import"class-variance-authority";function w({open:i,onOpenChange:t,process:s,type:e,runningCount:n,onConfirm:a}){return r(c,{open:i,onOpenChange:t,children:o(p,{children:[o(d,{children:[r(g,{children:e==="all"?"Stop All Processes?":"Stop Process?"}),r(m,{children:e==="all"?o(l,{children:["Are you sure you want to stop ",o("strong",{children:["ALL ",n," running processes"]}),"?"]}):o(l,{children:["Are you sure you want to stop ",r("strong",{children:s?.display_name}),"?"]})})]}),o(A,{children:[r(h,{children:"Cancel"}),r(u,{onClick:a,className:"bg-destructive hover:bg-destructive/90",children:e==="all"?"Stop All Processes":"Stop Process"})]})]})})}export{w as ConfirmDialog};
