refactor(Nav/Conversation): reorganize imports and fix import paths

This commit is contained in:
Danny Avila 2023-07-27 10:11:57 -04:00 committed by Danny Avila
parent 4898f7489b
commit dd8bc39001
10 changed files with 42 additions and 25 deletions

View 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} />
);
})}
</>
);
}