"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTooltipVisible = void 0;
const get_tooltip_info_1 = require("./get_tooltip_info");
const specs_1 = require("../../../specs");
const create_selector_1 = require("../../../state/create_selector");
const get_tooltip_spec_1 = require("../../../state/selectors/get_tooltip_spec");
exports.isTooltipVisible = (0, create_selector_1.createCustomCachedSelector)([get_tooltip_spec_1.getTooltipSpecSelector, get_tooltip_info_1.getTooltipInfo], ({ type }, tooltipInfo) => {
    return {
        visible: type !== specs_1.TooltipType.None && (tooltipInfo?.values.length ?? 0) > 0,
        isExternal: false,
        displayOnly: false,
        isPinnable: false,
    };
});
//# sourceMappingURL=is_tooltip_visible.js.map