{ confirmDelete = false; }} href="{base}/conversation/{conv.id}" class="group flex h-10 flex-none items-center gap-1.5 rounded-lg pl-2.5 pr-2 text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 {conv.id === $page.params.id ? 'bg-gray-100 dark:bg-gray-700' : ''}" >
{#if confirmDelete}
Delete
{/if} {#if conv.avatarHash && !$settings.hideEmojiOnSidebar}
{conv.title.replace(/\p{Emoji}/gu, "")} {:else if conv.assistantId}
{conv.title.replace(/\p{Emoji}/gu, "")} {:else} {conv.title} {/if}
{#if confirmDelete}
{ confirmDelete = false; dispatch("deleteConversation", conv.id); }} >
(confirmDelete = false)} >
{:else}
{ const newTitle = prompt("Edit this conversation title:", conv.title); if (!newTitle) return; dispatch("editConversationTitle", { id: conv.id, title: newTitle }); }} >
{ if (event.shiftKey) { dispatch("deleteConversation", conv.id); } else { confirmDelete = true; } }} >
{/if}