import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2026 GoodData Corporation
import { UiModalDialog } from "../UiModalDialog/UiModalDialog.js";
import { UiAddGranteeDialogCard } from "./UiAddGranteeDialogCard.js";
/**
 * Add-grantee dialog — wraps `UiAddGranteeDialogCard` in `UiModalDialog`
 * for the full modal contract (portal, dimmed backdrop, focus trap, Esc
 * and backdrop dismiss).
 *
 * @internal
 */
export function UiAddGranteeDialog({ isOpen, ...cardProps }) {
    return (_jsx(UiModalDialog, { isOpen: isOpen, onClose: cardProps.onClose, children: _jsx(UiAddGranteeDialogCard, { ...cardProps }) }));
}
