"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTooltipSpecSelector = void 0;
const get_specs_1 = require("./get_specs");
const chart_types_1 = require("../../chart_types");
const specs_1 = require("../../specs");
const spec_type_1 = require("../../specs/spec_type");
const create_selector_1 = require("../create_selector");
const get_spec_from_store_1 = require("../utils/get_spec_from_store");
exports.getTooltipSpecSelector = (0, create_selector_1.createCustomCachedSelector)([get_specs_1.getSpecs], (specs) => {
    const tooltipSpec = (0, get_spec_from_store_1.getSpecFromStore)(specs, chart_types_1.ChartType.Global, spec_type_1.SpecType.Tooltip, false);
    return tooltipSpec ?? specs_1.DEFAULT_TOOLTIP_SPEC;
});
//# sourceMappingURL=get_tooltip_spec.js.map