"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfirmModal = void 0;
const react_1 = __importDefault(require("react"));
const __1 = require("..");
function ConfirmModal({ children, title = 'Are you sure?', description = 'This action is irreversible', onCancel, onConfirm, }) {
    return (react_1.default.createElement(__1.Modal.Root, null,
        react_1.default.createElement(__1.Modal.Trigger, null, children),
        react_1.default.createElement(__1.Modal.Content, null, ({ close }) => (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(__1.Modal.Title, null, title),
            description && (react_1.default.createElement(__1.Modal.Description, null, description)),
            react_1.default.createElement(__1.Modal.Body, null,
                react_1.default.createElement("div", null)),
            react_1.default.createElement(__1.Modal.Actions, null,
                react_1.default.createElement(__1.Confirmation, { onCancel: onCancel, onConfirm: onConfirm })))))));
}
exports.ConfirmModal = ConfirmModal;
//# sourceMappingURL=index.js.map