import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2022-2026 GoodData Corporation
import cx from "classnames";
import { Bubble } from "../Bubble/Bubble.js";
import { BubbleHoverTrigger } from "../Bubble/BubbleHoverTrigger.js";
import { ALIGN_POINTS, ARROW_OFFSETS } from "./constants.js";
/**
 * @internal
 */
export function TooltipIcon({ text, iconClass, arrowOffsets = ARROW_OFFSETS, alignPoints = ALIGN_POINTS, }) {
    return (_jsx("span", { children: _jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, children: [
                _jsx("span", { className: cx("gd-tooltip-icon", iconClass) }), _jsx(Bubble, { arrowOffsets: arrowOffsets, alignPoints: alignPoints, children: text })
            ] }) }));
}
