{#if multiSelect} {:else if uid === null}

Select a photo to preview.

{:else if photoQuery.isPending}

Loading…

{:else if photoQuery.isError}

Failed to load photo.

{:else if photoQuery.data} {@const pf = primaryFile(photoQuery.data)} {#if currentIndex > 0} {/if} {#if currentIndex >= 0 && currentIndex < order.length - 1} {/if} {#if isVideo(photoQuery.data)} {@const vf = videoFile(photoQuery.data)} {#key vf.Hash} {/key} {:else} {photoQuery.data.OriginalName {/if} {/if}