import{s as e}from"./utils-CXcsdpX-.js";import{Oo as t,za as n}from"./index-Ct5uU080.js";import{a as r,i,n as a,o,r as s,t as c}from"./dialog-DuXDR687.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};