import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2024-2025 GoodData Corporation
import cx from "classnames";
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
const alignPoints = [{ align: "cr cl" }];
export function RemoveIcon({ tooltipMessage, onClick, isDisabled = false }) {
    return (_jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, className: "gd-grantee-item-delete", children: [
            _jsx("span", { className: cx("gd-grantee-item-icon gd-grantee-icon-trash gd-grantee-item-icon-right s-user-management-delete", { "is-disabled": isDisabled }), onClick: isDisabled ? undefined : onClick, "aria-label": "Delete" }), _jsx(Bubble, { className: "bubble-primary", alignPoints: alignPoints, children: tooltipMessage })
        ] }));
}
//# sourceMappingURL=RemoveIcon.js.map