"use strict";

export const createUserNameFromSetUser = (usersSet, userId) => {
  const user = usersSet[userId];
  if (!user) {
    return 'Deleted User';
  }
  const firstName = user.firstName?.trim() || '';
  const lastName = user.lastName?.trim() || '';
  return `${firstName} ${lastName}`.trim() || userId;
};
//# sourceMappingURL=createUserNameFromSetUser.js.map