'use client';
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { Modal } from './Modal.js';
import { Button } from './Button.js';
export function ConfirmDialog({ open, onClose, onConfirm, title, description, confirmLabel = 'Confirm', cancelLabel = 'Cancel', destructive = false, }) {
    return (_jsx(Modal, { open: open, onClose: onClose, title: title, actions: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", onClick: onClose, children: cancelLabel }), _jsx(Button, { variant: destructive ? 'danger' : 'primary', onClick: () => {
                        onConfirm();
                        onClose();
                    }, children: confirmLabel })] }), children: _jsx("p", { className: "text-sm text-[var(--muted-foreground)]", children: description }) }));
}
//# sourceMappingURL=ConfirmDialog.js.map