const fewType2 = (queryParams) => {
return function (typeItem) {
return Object.keys(typeItem).some(
(key) => typeItem[key] === queryParams[key]
);
};
};
export const filterTabs2 = (queryParams) => {
return function ({ displayCondition }) {
if (!displayCondition) return true;
if (Array.isArray(displayCondition))
return displayCondition.some(fewType2(queryParams));
return fewType2(displayCondition);
};
};
const columnsFilter2 = columns(t).filter(filterTabs2(queryParams));