- {#if chatTitleEditId === chat.id}
-
-
-
-
- {:else if chatDeleteId === chat.id}
-
-
-
-
- {:else}
-
-
{
- cloneChatHandler(chat.id);
- }}
- shareHandler={() => {
- shareChatId = selectedChatId;
- showShareChatModal = true;
- }}
- archiveChatHandler={() => {
- archiveChatHandler(chat.id);
- }}
- renameHandler={() => {
- chatTitle = chat.title;
- chatTitleEditId = chat.id;
- }}
- deleteHandler={() => {
- chatDeleteId = chat.id;
- }}
- onClose={() => {
- selectedChatId = null;
- }}
- >
-
-
-
- {#if chat.id === $chatId}
-
- {/if}
-
- {/if}
-