// (C) 2021-2026 GoodData Corporation
import { createSelector } from "@reduxjs/toolkit";
import { selectActiveTab } from "../tabsSelectors.js";
/**
 * Returns the filter group config of currently active tab.
 *
 * @alpha
 */
export const selectFilterGroupsConfig = createSelector(selectActiveTab, (tab) => {
    if (!tab) {
        return undefined;
    }
    return tab.filterGroupsConfig;
});
