dispatch('close')} >
Activity
{#if innerHeight}
{#each reactions as reaction, index (reaction.id)} {#if reaction.type === 'comment'}
{reaction.comment}
{#if reaction.user.id === user.id || albumOwnerId === user.id}
(!showDeleteReaction[index] ? showOptionsMenu(index) : '')}>
{/if}
{#if showDeleteReaction[index]}
(showDeleteReaction[index] = false)} on:click={() => handleDeleteReaction(reaction, index)} > Delete
{/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} {:else if reaction.type === 'like'}
{`${reaction.user.firstName} ${reaction.user.lastName} liked this ${getAssetType( assetType, ).toLowerCase()}`}
{#if reaction.user.id === user.id || albumOwnerId === user.id}
(!showDeleteReaction[index] ? showOptionsMenu(index) : '')}>
{/if}
{#if showDeleteReaction[index]}
(showDeleteReaction[index] = false)} on:click={() => handleDeleteReaction(reaction, index)} > Delete Like
{/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()}>
{#if isSendingMessage}
{:else if message}
{/if}