function normalizeLabel(value) {
  const normalized = value?.trim();
  return normalized ? normalized : null;
}
function getMessageListParticipantLabel(item, folder, t) {
  if ((folder === "sent" || folder === "drafts") && Number(item.recipientCount ?? 0) <= 0) {
    return t("messages.list.noRecipient", "(No recipient)");
  }
  return normalizeLabel(item.senderName) ?? normalizeLabel(item.senderEmail) ?? item.senderUserId;
}
export {
  getMessageListParticipantLabel
};
//# sourceMappingURL=messageListLabels.js.map
