{#if visibleAttachments?.length}
{#each visibleAttachments as attachment, i}
showMenu(event, attachment, i)}>
{/each} {#if visibleAttachments.length < totalAttachments}
{ const loc = getCurrentLocation() loc.path[2] = 'fileBrowser' loc.query = channel ? { spaceId: channel._id } : {} navigate(loc) }} >
{/if}
{:else}
{/if}