app/react/ToggledFeatures/tocGeneration/utils.ts
import { ClientSettings } from 'app/apiResponseTypes';
import { SearchParams } from 'shared/types/searchParameterType';
export const tocGenerationUtils = {
aggregations(params: SearchParams, settings: ClientSettings) {
return {
...params,
...(settings?.features?.tocGeneration ? { aggregateGeneratedToc: true } : {}),
};
},
};