"use strict";

exports.__esModule = true;
exports.getTranslatedErrorMessage = void 0;
const getTranslatedErrorMessage = ({
  errorCode,
  visualType,
  container,
  excessCount = 1,
  limit = 100
}) => {
  switch (errorCode) {
    case 'TAGS_REACHED_LIMIT':
      {
        const translationKey = visualType === 'toast' ? 'cairo.tags.popover.creationLimitReached.error' : 'cairo.tags.creationLimitReached.error';
        return container.translate(translationKey, {
          count: excessCount,
          limit
        });
      }
    default:
      {
        const translationKey = visualType === 'toast' ? 'cairo.tags.collectionPage.toast.create.error' : 'cairo.tags.manageTags.modal.toast.create.error';
        return container.translate(translationKey);
      }
  }
};
exports.getTranslatedErrorMessage = getTranslatedErrorMessage;
//# sourceMappingURL=tags.js.map