import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2019-2025 GoodData Corporation
import { memo } from "react";
import cx from "classnames";
import { useIntl } from "react-intl";
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
import { messages } from "../../locales.js";
import { getTranslation } from "../utils/translations.js";
export const DisabledBubbleMessage = memo(function DisabledBubbleMessage({ className, alignPoints = [{ align: "cr cl" }], children, messageId = messages["notApplicable"].id, showDisabledMessage, }) {
    const intl = useIntl();
    const getBubbleClassNames = () => {
        return cx("bubble-primary", {
            invisible: !showDisabledMessage,
        });
    };
    return (_jsxs(BubbleHoverTrigger, { className: className, children: [children, _jsx(Bubble, { className: getBubbleClassNames(), alignPoints: alignPoints, children: getTranslation(messageId, intl) })
        ] }));
});
//# sourceMappingURL=DisabledBubbleMessage.js.map