{#if messages.length == 0}
{:else} {#each messages as message, messageIdx}
{#if message.role === 'user'}
message.parentId === null) .map((message) => message.id) ?? []} {confirmEditMessage} {showPreviousMessage} {showNextMessage} {copyToClipboard} /> {:else}
{/if}
{/each} {#if bottomPadding}
{/if} {/if}