import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2026 GoodData Corporation
import { UiModalDialog } from "../UiModalDialog/UiModalDialog.js";
import { UiConfirmDialogCard } from "./UiConfirmDialogCard.js";
/**
 * Modal confirm dialog used for actions that need explicit user confirmation
 * (granting workspace access, restricting access, removing a grantee,
 * transferring ownership). Wraps `UiConfirmDialogCard` in `UiModalDialog`
 * for the full modal contract — portal, dimmed backdrop, focus trap,
 * Esc and backdrop dismiss.
 *
 * @internal
 */
export function UiConfirmDialog({ isOpen, ...cardProps }) {
    return (_jsx(UiModalDialog, { isOpen: isOpen, onClose: cardProps.onClose, width: 420, children: _jsx(UiConfirmDialogCard, { ...cardProps }) }));
}
