$
// home —
@{currentUser.handle}
{#if timelineError}
err: {timelineError}
{/if}
{#if timelineLoading && userPosts.length === 0}
// timeline is empty. compose your first post →
{:else}
{#if threadRoot}
err: {threadError}
{:else if threadRoot}
{#if threadParent && threadParent.uri !== threadRoot.uri}
$
// compose —
@{currentUser.handle}
$
// profile —
@{currentUser.handle}
{#if profileLoading && !profile}
err: {profileError}
{:else if profile}
- followers
- {profile.followers}
- following
- {profile.following}
- posts
- {profile.posts.length}
// no posts yet
{:else}
{#each profile.posts as p (p.uri)}
$
// search
{#if searchError}
err: {searchError}
{/if}
{#if searchLoading}
// type to search…
{:else if searchResults.length === 0}
// no posts match "{searchQuery}"
{:else}
{#each searchResults as p (p.uri)}