{#if profile.sessionExpired || profile.current?.jwt} {#if !commenting} {#snippet action()}
{/snippet}
{:else} { if (cv.post.uri !== post.uri) return insertCommentIntoTree(tree, cv, false) commentCreated(cv) }} onfocus={() => (commenting = true)} tools={commenting} preview={commenting} placeholder={commenting ? undefined : $t('routes.post.addComment')} rows={commenting ? 7 : 1} oncancel={() => (commenting = false)} /> {/if} {/if} {#if commenting || !(profile.sessionExpired || profile.current.jwt)}
{/if} {#snippet allCommentsPlaceholder()} {#snippet action()} {/snippet} {/snippet} {#if singleThread && !showContext} {@render allCommentsPlaceholder()} {/if} {#if showContext && tree[0]}
{/if} {#if virtualize} {:else}
{/if} {#if singleThread && !showContext} {@render allCommentsPlaceholder()} {/if}