diff --git a/src/components/ChatBox.tsx b/src/components/ChatBox.tsx index 1b5ddd1..f06a80c 100644 --- a/src/components/ChatBox.tsx +++ b/src/components/ChatBox.tsx @@ -143,6 +143,16 @@ export default function ChatBox({ showAllMessagesTab = false, className = "", st fetchMessages(undefined, true); }; + const LoadMoreButton = () => ( + + ); + return (
-
+
{messages.length === 0 && !loading && (
No chat messages found.
)} - {messages.map((msg, i) => ( + {hasMore && !startExpanded && ( + + )} + {(startExpanded ? messages : messages.toReversed()).map((msg, i) => ( ))} - {hasMore && ( - + {hasMore && startExpanded && ( + )}