Activity

{#if innerHeight}
{#each reactions as reaction, index (reaction.id)} {#if reaction.type === 'comment'}
{reaction.comment}
{#if assetId === undefined && reaction.assetId}
comment-thumbnail
{/if} {#if reaction.user.id === user.id || albumOwnerId === user.id}
{/if}
{#if showDeleteReaction[index]} {/if}
{#if (index != reactions.length - 1 && !shouldGroup(reactions[index].createdAt, reactions[index + 1].createdAt)) || index === reactions.length - 1}
{timeSince(luxon.DateTime.fromISO(reaction.createdAt))}
{/if} {:else if reaction.type === 'like'}
{`${reaction.user.name} liked ${assetType ? `this ${getAssetType(assetType).toLowerCase()}` : 'it'}`}
{#if assetId === undefined && reaction.assetId}
like-thumbnail
{/if} {#if reaction.user.id === user.id || albumOwnerId === user.id}
{/if}
{#if showDeleteReaction[index]} {/if}
{#if (index != reactions.length - 1 && isTenMinutesApart(reactions[index].createdAt, reactions[index + 1].createdAt)) || index === reactions.length - 1}
{timeSince(luxon.DateTime.fromISO(reaction.createdAt))}
{/if}
{/if} {/each}
{/if}
handleSendComment()}>