dispatchClick('click', album)} on:keydown={() => dispatchClick('click', album)} 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.firstName} {albumOwner.lastName}

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

Shared

{/if}