{#snippet leftPane()}

Discussions

{#if userPubkey} {/if}
{#if loadingDiscussions}
Loading discussions...
{:else if discussions.length > 0} {/if}
{/snippet} {#snippet rightPanel()} {#if error}
{error}
{/if} {#if selectedDiscussion} {@const discussion = discussions.find(d => d.id === selectedDiscussion)} {#if discussion} {/if} {:else}

Select a discussion from the sidebar to view it

{/if} {/snippet}
{#if showCreateThreadDialog && userPubkey} {/if} {#if showReplyDialog && userPubkey && replyingToThread} {/if}