"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPointerValueSelector = void 0;
const get_internal_chart_state_1 = require("./get_internal_chart_state");
const create_selector_1 = require("../create_selector");
exports.getPointerValueSelector = (0, create_selector_1.createCustomCachedSelector)([(globalChartState) => globalChartState, get_internal_chart_state_1.getInternalChartStateSelector], (globalChartState, internalChartState) => {
    const header = internalChartState?.getTooltipInfo(globalChartState)?.header;
    if (header) {
        const { value, formattedValue, valueAccessor } = header;
        return { value, formattedValue, valueAccessor };
    }
});
//# sourceMappingURL=get_pointer_value.js.map