Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011
  1. /**
  2. * Appends a suffix to the display name.
  3. *
  4. * @param {string} displayName - The display name.
  5. * @param {string} suffix - Suffix that will be appended.
  6. * @returns {string} The formatted display name.
  7. */
  8. export function appendSuffix(displayName, suffix) {
  9. return `${displayName || suffix || ''}${
  10. displayName && suffix ? ` (${suffix})` : ''}`;
  11. }