{#if $reactions.length > 0 || $reports.length > 0}
{#if url && $reports.length > 0}
{$reports.length}
{/if} {#each groupedReactions.entries() as [content, events]} {@const pubkeys = events.map(e => e.pubkey)} {@const isOwn = $pubkey && pubkeys.includes($pubkey)} {@const info = displayList(pubkeys.map(pubkey => displayProfileByPubkey(pubkey)))} {@const tooltip = `${info} reacted ${displayReaction(content)}`} {@const onClick = () => onReactionClick(content, events)}
{displayReaction(content)}
{#if events.length > 1}
{events.length}
{/if}
{/each} {@render children?.()}
{/if}