{#if profile.data?.jwt} {#if !commenting} c.community.id) .includes(post.community_view.community.id) )} onclick={() => (commenting = true)} > {$t('routes.post.addComment')} {#snippet action()} {$t('filter.sort.hot')} {$t('filter.sort.top.label')} {$t('filter.sort.new')} {$t('filter.sort.old')} {$t('filter.sort.controversial')} {#snippet prefix()} {/snippet} {/snippet} {:else} { comments.comments.push(comment.comment_view) }} 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.data.jwt} {$t('filter.sort.hot')} {$t('filter.sort.top.label')} {$t('filter.sort.new')} {$t('filter.sort.old')} {$t('filter.sort.controversial')} {#snippet prefix()} {/snippet} {/if} {#if virtualize} {:else} {/if}