window.open(attachment.file, '_blank')} role="button" tabindex="0" aria-label={attachment.file.split('/').pop()} > {#if !['.jpg', '.jpeg', '.png', '.gif', '.webp'].some((ext) => attachment.file.endsWith(ext))}

{attachment.name}
{attachment.extension.toUpperCase()}

{/if}
{$t('adventures.attachment')}
{attachment.extension}
{attachment.name}
{#if allowEdit} {/if}