import { getOperatorLabel, } from '@wix/bex-core';
import { createElement } from 'react';
import { FilterTagContent } from '../AppliedFiltersTagList/FilterTagContent';
export const renderOperatorFilterToolbarTag = (container, params) => {
    return (item) => {
        const { filterProps } = params;
        const { translate: t } = container;
        const { operator, value } = item;
        const operatorLabel = t(getOperatorLabel(operator));
        const displayValue = value != null && value !== '' ? `  ${value}` : '';
        return {
            children: createElement(FilterTagContent, { filterProps }, `${operatorLabel}${displayValue}`),
        };
    };
};
//# sourceMappingURL=renderOperatorFilterToolbarTag.js.map