{#if $store === null}

{:else} {#if appState.includes(APPSTATE.CHANNELS)} {#if appState.replace(APPSTATE.CHANNELS, "") !== ""}
setAppState(APPSTATE.CHANNELS)} on:keydown={() => setAppState(APPSTATE.CHANNELS)} >
{:else}
{/if} {/if} {#if appState === APPSTATE.LEADERBOARD}
{/if} {#if appState === APPSTATE.FRIENDS}
{ resetAppState(); clearInterval(friendsInterval); }} on:keydown={() => { resetAppState(); clearInterval(friendsInterval); }} >
{/if} {#if appState === APPSTATE.HISTORY}
{/if} {#if appState === APPSTATE.HISTORY_ID}
{/if} {#if appState === APPSTATE.PROFILE}
{/if} {#if appState === APPSTATE.PROFILE_ID}
{/if} {#if fakemenu} {:else} {/if} {/if}