{#if profile.data?.jwt} {#if !commenting} {#snippet action()}
{/snippet}
{:else} { comments.comments = [comment.comment_view, ...comments.comments] }} locked={(post.post_view.post.locked && !( profile.data?.user?.local_user_view.local_user.admin || profile.data?.user?.moderates .map((c) => c.community.id) .includes(post.community_view.community.id) )) || page.params.instance.toLowerCase() != $instance.toLowerCase()} banned={post.community_view.banned_from_community} 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}
{/if}