mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
refactor(Nav/Conversation): reorganize imports and fix import paths
This commit is contained in:
parent
4898f7489b
commit
dd8bc39001
10 changed files with 42 additions and 25 deletions
22
client/src/components/Conversations/Conversations.tsx
Normal file
22
client/src/components/Conversations/Conversations.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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} />
|
||||
);
|
||||
})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue