{#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 isFriendOpen}
(isFriendOpen = false)} on:keydown={() => (isFriendOpen = false)} >
{/if} {#if isHistoryOpen}
(isHistoryOpen = false)} on:keydown={() => (isHistoryOpen = false)} >
{/if} {#if isProfileOpen}
(isProfileOpen = false)} on:keydown={() => (isProfileOpen = false)} >
{/if} {/if}