File size: 531 Bytes
9705b6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Conversation from './Conversation';
import { TConversation } from 'librechat-data-provider';

export default function Conversations({
  conversations,
  moveToTop,
}: {
  conversations: TConversation[];
  moveToTop: () => void;
}) {
  return (
    <>
      {conversations &&
        conversations.length > 0 &&
        conversations.map((convo: TConversation) => {
          return (
            <Conversation key={convo.conversationId} conversation={convo} retainView={moveToTop} />
          );
        })}
    </>
  );
}