{ if (type == 'image') showImage(bestImageURL(post, false, -1)) }} role={type == 'image' ? 'button' : 'link'} tabindex="0" class="cursor-pointer h-full block" >
{#if post.thumbnail_url || type == 'image'} {@const thumbnail = post.thumbnail_url != undefined && type != 'image'} {#each ['webp'] as format} {/each} {post.alt_text {#if type != 'image'}
{/if} {:else} {@const typeIconMap = new Map([ ['embed', Link], ['iframe', VideoCamera], ['poll', PresentationChartBar], ['event', Calendar], ])}
{/if}
{#if blur} {/if}
{#if post.alt_text} {/if}