{#each flattenNotes(rootNote) as note}
{#if note.depth ?? 0 > 0} |{'=='.repeat(note.depth ?? 0)}> {/if} {#if !onlyContent} {#if (note.purposeAction ?? '').length > 0} {/if} {#if note.purposeAction !== 'reply'} {/if} {/if} {#if note.hasMedia}{/if} {#if note.hasQuote}{/if} {#if showOutgoing} {#each (note.outgoingLinks ?? []).map(getOutgoingLink) as [name, link]} {@const color = outgoingLinkColors[name]} {@const viewName = mapOutgoingNames[name] ?? name} {#if viewName.length > 0} {viewName} {/if} {/each} {/if}