{#if profile.isMod(item.community) || profile.isAdmin}
{#if !item.community.local && !profile.isMod(item.community)}
{$t('moderation.labelInstanceOnly')}
{:else}
{$t('moderation.label')}
{/if}
remove(item)} icon={Trash}>
{#if isCommentView(item)}
{item.comment.removed
? $t('moderation.restore')
: $t('moderation.remove')}
{/if}
{#if profile.current?.jwt}
ban(item.creator_banned_from_community, item.creator, item.community)}
icon={ShieldExclamation}
>
{item.creator_banned_from_community
? $t('moderation.ban.unbanFromCommunity')
: $t('moderation.ban.banFromCommunity')}
{:else}
{
if (!profile.current.jwt) return
item.comment = (
await feature(
!item.comment.distinguished,
item.comment,
profile.current.jwt,
)
).comment_view.comment
}}
icon={Megaphone}
>
{item.comment.distinguished
? $t('moderation.unfeature')
: $t('moderation.feature')}
{/if}
{$t('moderation.modlog.comment')}
{$t('moderation.modlog.user')}
viewVotes(item)}>
{$t('moderation.votes')}
{/if}
{#if profile.isAdmin}
{$t('admin.label')}
remove(item, true)}
icon={Fire}
>
{$t('admin.purge')}
{/if}