import{o as e}from"./utils-Dac180Gn.js";import{ao as t,ga as n}from"./index-8M5AnKdQ.js";import{a as r,i,n as a,o,r as s,t as c}from"./dialog-CILF_XUh.js";var l=e();function u({open:e,onOpenChange:u,title:d,description:f,isDeleting:p,onConfirm:m}){return(0,l.jsx)(c,{open:e,onOpenChange:u,children:(0,l.jsxs)(a,{className:`sm:max-w-md`,children:[(0,l.jsxs)(r,{children:[(0,l.jsx)(o,{children:d}),(0,l.jsx)(s,{children:f})]}),(0,l.jsxs)(i,{children:[(0,l.jsx)(n,{variant:`outline`,onClick:()=>u(!1),disabled:p,children:`Cancel`}),(0,l.jsx)(n,{variant:`destructive`,onClick:m,disabled:p,children:p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{className:`mr-2 size-4 animate-spin`}),`Deleting...`]}):`Delete`})]})]})})}export{u as t};