{#if $store === null}

{:else} {#if isChannelsOpen} {#if selectedChannel}
(selectedChannel = undefined)} on:keydown={() => (selectedChannel = undefined)} >
{/if} {#if !selectedChannel}
(isChannelsOpen = false)} on:keydown={() => (isChannelsOpen = false)} >
{/if} {/if} {#if isSpectateOpen}
(isSpectateOpen = false)} on:keydown={() => (isSpectateOpen = false)} >
{/if} {#if isLeaderboardOpen}
(isLeaderboardOpen = false)} on:keydown={() => (isLeaderboardOpen = false)} >
{/if} {#if isFriendOpen}
{ isFriendOpen = false; clearInterval(friendsInterval); }} on:keydown={() => { isFriendOpen = false; clearInterval(friendsInterval); }} >
{/if} {#if isHistoryOpen}
(isHistoryOpen = false)} on:keydown={() => (isHistoryOpen = false)} >
{/if} {#if isProfileOpen}
(isProfileOpen = false)} on:keydown={() => (isProfileOpen = false)} >
{/if} {#if isIdProfileOpen}
(isIdProfileOpen = false)} on:keydown={() => (isIdProfileOpen = false)} >
{/if} {#if fakemenu} {:else} {/if} {/if}