{#if avatar_img !== null}
{/if}
{#each messages as message, thought_index}
0} >
handle_select(i, message)} on:keydown={(e) => { if (e.key === "Enter") { handle_select(i, message); } }} dir={rtl ? "rtl" : "ltr"} aria-label={role + "'s message: " + get_message_label_data(message)} > {#if message.type === "text"} {#if message.metadata.title}
{:else}
{/if} {:else if message.type === "component" && message.content.component in _components}
scroll()} /> {:else if message.type === "component" && message.content.component === "file"}
{message.content.value?.orig_name || message.content.value?.path.split("/").pop() || "file"}
{/if}
{#if layout === "panel"}
{/if} {/each}
{#if layout === "bubble"}
{/if}