{#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 photo.thumb_url}
{:else}
обработка…
{/if} {#if isPanoTag(photo)}
360
{/if}
{photo.likes_count}
{photo.comments_count}
{/each}
{/if}