convo selection handling in progress

This commit is contained in:
Danny Avila 2023-02-06 16:28:50 -05:00
parent c794287ced
commit d35ed31b20
5 changed files with 32 additions and 10 deletions

View file

@ -1,7 +1,7 @@
import React from 'react';
import Conversation from './Conversation';
export default function Conversations({ conversations }) {
export default function Conversations({ conversations, convoHandler }) {
return (
<div className="-mr-2 flex-1 flex-col overflow-y-auto border-b border-white/20">
<div className="flex flex-col gap-2 text-sm text-gray-100">
@ -10,6 +10,7 @@ export default function Conversations({ conversations }) {
<Conversation
key={convo.conversationId}
title={convo.title}
onClick={() => convoHandler(convo.conversationId)}
/>
))}
{conversations && conversations.length >= 12 && (