"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createUserNameFromSetUser = void 0;
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;
};
exports.createUserNameFromSetUser = createUserNameFromSetUser;
//# sourceMappingURL=createUserNameFromSetUser.js.map