import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
const ALIGN_POINTS = [{ align: "bc tl" }, { align: "tc bl" }];
const ARROW_OFFSET = {
    "bc tl": [-100, 10],
    "tc bl": [-100, -10],
};
export function WithDisabledParentFilterTooltip({ children, isDisabled, formattedMessage, }) {
    if (!isDisabled) {
        return _jsx(_Fragment, { children: children });
    }
    return (_jsxs(BubbleHoverTrigger, { className: "gd-attribute-filter-dropdown-tooltip", tagName: "div", children: [children, _jsx(Bubble, { className: "bubble-primary gd-attribute-filter-dropdown-bubble s-attribute-filter-dropdown-bubble", alignPoints: ALIGN_POINTS, arrowOffsets: ARROW_OFFSET, children: formattedMessage })
        ] }));
}
