{#if $profile?.user && (amMod($profile?.user, comment.community) || isAdmin($profile.user))} {/if} Comment actions { navigator.share?.({ url: comment.comment.ap_id, }) ?? navigator.clipboard.writeText(comment.comment.ap_id) }} > Copy Link {#if $profile?.jwt} {#if comment.creator.id == $profile.user?.local_user_view.person.id} dispatcher('edit', comment)}> Edit {/if} { if ($profile?.jwt) comment.saved = await save(comment, !comment.saved, $profile.jwt) }} > {comment.saved ? 'Unsave' : 'Save'} {#if $profile?.user && $profile.jwt && isCommentMutable(comment, $profile.user.local_user_view)} { if ($profile?.jwt) comment.comment.deleted = await deleteItem( comment, !comment.comment.deleted, $profile.jwt ) }} > {comment.comment.deleted ? 'Restore' : 'Delete'} {/if} {#if $profile.jwt && $profile.user?.local_user_view.person.id != comment.creator.id} report(comment)} color="dangerSecondary"> Report {/if} {/if}