{#if photos.length === 0}
Пока нет фотографий.
{:else}
{#each photos as photo, i (photo.id)}
(lastPointer = e.pointerType)} onfocus={() => { if (lastPointer !== 'touch' && lastPointer !== 'pen') onCursorFocus?.(i); }} onclick={(e) => activate(i, e)} ondblclick={() => onOpen?.(i)} ondragstart={(e) => onDragStart?.(i, e)} oncontextmenu={(e) => onContextMenu?.(i, e)} > {#if photoThumbUrl(photo)}
{:else}
обработка…
{/if} {#if isPanoTag(photo)}
360
{/if} {#if photo.kind === 'video'}
{#if formatDuration(photo.duration_ms)}
{formatDuration(photo.duration_ms)}
{/if} {/if}
{photo.likes_count}
{photo.comments_count}
{/each}
{/if}