(isNavOpen = ev.detail)}
title={conversations_list.find((conv) => conv.id === $page.params.id)?.title}
>
shareConversation(ev.detail.id, ev.detail.title)}
on:deleteConversation={(ev) => deleteConversation(ev.detail)}
on:clickSettings={() => (isSettingsOpen = true)}
on:editConversationTitle={(ev) => editConversationTitle(ev.detail.id, ev.detail.title)}
/>
{#if currentError}
{/if}
{#if showWarning}
(showWarning = false)} />
{/if}
{#if isInit}
{/if}
{#if isloading}
{/if}
{#if isSettingsOpen}
(isSettingsOpen = false)}
on:deleteAllConversations={() => ((isSettingsOpen = false), deleteAllChats())}
settings={data.settings}
models={data.models}
/>
{/if}
{#if (requiresLogin && data.messagesBeforeLogin === 0) || loginModalVisible}
{/if}