{#if history.messages[messageId]}
{#if history.messages[messageId].role === 'user'}
message.parentId === null)
.map((message) => message.id) ?? [])}
{showPreviousMessage}
{showNextMessage}
{editMessage}
{deleteMessage}
{readOnly}
/>
{:else if (history.messages[history.messages[messageId].parentId]?.models?.length ?? 1) === 1}
{:else}
{/if}
{/if}