diff --git a/src/components/ChatBox.tsx b/src/components/ChatBox.tsx index 0806903..f713a54 100644 --- a/src/components/ChatBox.tsx +++ b/src/components/ChatBox.tsx @@ -142,6 +142,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 && ( + )}