import { __assign } from '../../../../node_modules/tslib/tslib.es6.js';
import { navigationEventCategory } from '../../../../types/tracking.js';
import { shouldShowComparisonLink } from '../ComparisonItem.js';
import { getFavoritesLinkConfig } from './user.js';
import { comparisonLinkConfig } from './comparison.js';

var iconItems = function (_a) {
    var comparisonItemIds = _a.comparisonItemIds, trackEvent = _a.trackEvent;
    return ({
        comparison: shouldShowComparisonLink(comparisonItemIds)
            ? __assign(__assign({}, comparisonLinkConfig({ comparisonItemIds: comparisonItemIds })), { onClick: function () {
                    return trackEvent === null || trackEvent === void 0 ? void 0 : trackEvent({
                        eventCategory: navigationEventCategory,
                        eventAction: 'open_comparison_tool',
                        eventLabel: 'icon',
                    });
                } }) : null,
        favorites: getFavoritesLinkConfig({
            trackEvent: trackEvent,
            eventLabel: 'icon',
        }),
    });
};

export { iconItems };
//# sourceMappingURL=iconItems.js.map
