mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
18 lines
397 B
React
18 lines
397 B
React
![]() |
|
||
|
import {humanizedJoin} from 'components/utils/text'
|
||
|
import {intersect, resolve} from 'components/utils/lists'
|
||
|
|
||
|
const filterable = [
|
||
|
"gateway", "network"
|
||
|
];
|
||
|
|
||
|
export function filterableColumns(columns, order) {
|
||
|
return resolve(columns, intersect(order, filterable));
|
||
|
}
|
||
|
|
||
|
export function filterableColumnsText(columns, order) {
|
||
|
return humanizedJoin(filterableColumns(columns, order), "or");
|
||
|
}
|
||
|
|
||
|
|