- {/* Mobile Header */}
-
+ {/* Header */}
+
{selectedThread ? (
@@ -539,10 +584,27 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
?.title
}
-
-
- {messages.length}
-
+
+
+
+
+
+ {new Set(messages.map((m) => m.created_by.id)).size}
+
+
+ {totalMessages}
+
+
+
+
+ {t("participants")}:{" "}
+ {new Set(messages.map((m) => m.created_by.id)).size}
+
+
+ {t("messages")}: {totalMessages}
+
+
+
) : (
@@ -550,13 +612,12 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
)}
-
{selectedThread ? (
<>
{messagesLoading ? (
) : (
@@ -580,17 +641,17 @@ export const EncounterNotesTab = ({ encounter }: EncounterTabProps) => {
))
)}
- {isFetchingNextPage && (
+ {isFetchingNextPage ? (
+ ) : (
+
)}
-
-
{/* Message Input */}
);