{i18n.t("game.view.mail")}

{#if mailStore.status === "loading"}

{i18n.t("game.mail.loading")}

{:else if mailStore.status === "error"}

{mailStore.error ?? i18n.t("game.mail.load_failed")}

{:else if entries.length === 0}

{i18n.t("game.mail.empty")}

{:else}
{#if selected === null}

{i18n.t("game.mail.select_thread")}

{:else if selected.kind === "thread"} {:else} {/if}
{/if} {#if composeOpen} (composeOpen = false)} onSent={(raceName: string | null) => { composeOpen = false; if (raceName !== null) { selectedKey = `thread:${raceName}`; } }} /> {/if}