dispatchClick('click', album)} on:keydown={() => dispatchClick('click', album)} on:mouseenter={() => (showVerticalDots = true)} on:mouseleave={() => (showVerticalDots = false)} data-testid="album-card" > {#if showContextMenu}
{/if}
{album.id}

{album.albumName}

{#if showItemCount}

{album.assetCount.toLocaleString($locale)} {album.assetCount == 1 ? `item` : `items`}

{/if} {#if isSharingView || album.shared}

ยท

{/if} {#if isSharingView} {#await getAlbumOwnerInfo() then albumOwner} {#if $user.email == albumOwner.email}

Owned

{:else}

Shared by {albumOwner.name}

{/if} {/await} {:else if album.shared}

Shared

{/if}