+
+ ▚ virtualizer
+ debug
+
+
+
+
+
+
+
+
+
+
+
+ {isAtBottom ? "yes" : "no"}
+
+ }
+ />
+ 0 ? "text-amber-300" : undefined}
+ >
+ {newMessageCount}
+
+ }
+ />
+
+
+
+ );
+}
+
+function truncate(value: string): string {
+ if (value.length <= 10) {
+ return value;
+ }
+ return `${value.slice(0, 6)}…${value.slice(-3)}`;
+}