diff --git a/packages/desktop/src/components/ConversationDetails.tsx b/packages/desktop/src/components/ConversationDetails.tsx index 0eef053..a1ba28f 100644 --- a/packages/desktop/src/components/ConversationDetails.tsx +++ b/packages/desktop/src/components/ConversationDetails.tsx @@ -31,7 +31,13 @@ import useTerminal from './Terminal'; export default function ConversationDetails() { const { user } = useAuth(); - const { getUser, selectedConversation, selectConversation, isCloudDoingMagic } = useTerminal(); + const { + getUser, + selectedConversation, + conversationContentMap, + selectConversation, + isCloudDoingMagic, + } = useTerminal(); const rendersCount = useRendersCount(); console.warn('RENDER COUNT | CONVERSATION DETAILS | ', rendersCount); @@ -79,58 +85,47 @@ export default function ConversationDetails() { // TODO: uncheck priority or not // soft max of 10...not going to enforce by counting all in database, but relying on client side list of convos - return ( - <> - - - - {/* - - - - */} - - - ); -} - -function ConversationHistory() { - const { isCloudDoingMagic, selectedConversation, conversationContentMap } = useTerminal(); - const contentBlocks = useMemo(() => { return conversationContentMap[selectedConversation.id] ?? []; }, [conversationContentMap, selectedConversation.id]); - if (contentBlocks.length === 0) + if (contentBlocks.length === 0) { return ( - - Get the party started! - - ); - - return ( - - - today + {`Ready?!`} + Get the party started! + Look at the controls at the bottom right! + + ); + } - {contentBlocks.map((contentBlock) => ( - - - {/* + return ( + + + + today + + {contentBlocks.map((contentBlock) => ( + + + {/* @@ -138,26 +133,27 @@ function ConversationHistory() { */} - - - ))} + + + + + + ))} - {isCloudDoingMagic && ( - - - - )} - + {isCloudDoingMagic && ( + + + + )} + + ); }