{#if canCopyImageToClipboard() && asset.type === AssetTypeEnum.Image && $photoViewerImgElement}
onCopyImage?.()}
/>
{/if}
{#if isOwner}
{/if}
{#if isOwner}
{/if}
{#if !sharedLink}
{#if showSlideshow && !isLocked}
{/if}
{#if !isLocked}
{#if asset.isTrashed}
{:else}
{/if}
{/if}
{#if isOwner}
{#if stack}
{#if stack?.primaryAssetId !== asset.id}
{#if stack?.assets?.length > 2}
{/if}
{/if}
{/if}
{/if}
{#if album}
{/if}
{#if person}
{/if}
{#if asset.type === AssetTypeEnum.Image && !isLocked}
{/if}
{#if !isLocked}
{#if isOwner}
handleReplaceAsset(asset.id)}
text={$t('replace_with_upload')}
/>
{#if !asset.isArchived && !asset.isTrashed}
goto(Route.photos({ at: stack?.primaryAssetId ?? asset.id }))}
text={$t('view_in_timeline')}
/>
{/if}
{/if}
{#if !asset.isArchived && !asset.isTrashed && smartSearchEnabled}
goto(Route.search({ queryAssetId: stack?.primaryAssetId ?? asset.id }))}
text={$t('view_similar_photos')}
/>
{/if}
{/if}
{#if !asset.isTrashed && isOwner}
{/if}
{#if asset.type === AssetTypeEnum.Video}
setPlayOriginalVideo(!playOriginalVideo)}
text={playOriginalVideo ? $t('play_transcoded_video') : $t('play_original_video')}
/>
{/if}
{#if isOwner}
{/if}
{/if}