export const getRuleViewItems = (rule, api) => {
    return {
        name: 'Condition',
        values: [
            rule?.Predicates?.length
                ? rule?.Predicates?.map((predicate) => api.predicateApi.predicateToString(predicate)).join(' AND ')
                : api.internalApi.getAdaptableQueryExpressionText(rule) ?? 'No condition',
        ],
    };
};
