{#if isLoading}

Loading collection...

{:else if isEmpty}
{#if data.isOwner}

Your weapon collection is empty

Use the "Add weapons" button above to get started

{:else}

This collection is empty or private

{/if}
{:else if currentViewMode === 'grid'}
{#each allWeapons as weapon (weapon.id)} openWeaponDetails(weapon)}> {/each}
{:else}
{#each allWeapons as weapon (weapon.id)} openWeaponDetails(weapon)}> {/each}
{/if} {#if !isLoading && !isEmpty}
{#if collectionQuery.isFetchingNextPage}
Loading more...
{/if} {/if}