(conversation: Conversation)
| 57 | }; |
| 58 | |
| 59 | const handleDeleteConversation = (conversation: Conversation) => { |
| 60 | conversationStore.clearConversation((item) => item.id !== conversation.id); |
| 61 | if (conversationStore.currentConversationId === conversation.id) { |
| 62 | conversationStore.setCurrentConversationId(undefined); |
| 63 | } |
| 64 | }; |
| 65 | |
| 66 | return ( |
| 67 | <> |