{#if !loading && availableLists.length > 0 && !singleRelay}
{/if} {#if singleRelay}

Showing feed from: {singleRelay}

{/if} {#if loading}

Loading feed...

{:else if posts.length === 0 && highlights.length === 0 && otherFeedEvents.length === 0}

{#if selectedListId} No posts found in selected list. {:else} No posts found. Check back later! {/if}

{:else}
{#each [...posts, ...highlights, ...otherFeedEvents].sort((a, b) => b.created_at - a.created_at) as event (event.id)} {#if event.kind === KIND.HIGHLIGHTED_ARTICLE} {:else} {/if} {/each}
{#if drawerOpen && drawerEvent} {/if}
{#if loadingMore}

Loading more...

{:else if hasMore}

Scroll for more

{:else}

No more posts

{/if}
{/if}