{#if $store === null}
Please log in with 42 api to access the website.
{:else if $store.twoFA === true && $store.isVerified === false}
{: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}
{/if}
{#if appState === APPSTATE.HISTORY}
{/if}
{#if appState === APPSTATE.HISTORY_ID}
setAppState(APPSTATE.PROFILE)}
on:keydown={() => setAppState(APPSTATE.PROFILE)}
>
{/if}
{#if appState === APPSTATE.PROFILE}
setAppState(APPSTATE.HISTORY_ID)} />
{/if}
{#if appState === APPSTATE.PROFILE_ID}
setAppState(APPSTATE.CHANNELS + "#" + selectedChannel.name)}
on:keydown={() =>
setAppState(APPSTATE.CHANNELS + "#" + selectedChannel.name)}
>
setAppState(APPSTATE.HISTORY_ID)}
/>
{/if}
{#if fakemenu}
{:else}
{/if}
{/if}