{#await request}

{t("status.loading")}

{:then data}

{t("dashboard.stats.playtime", {playtime: new Intl.NumberFormat(astroI18n.locale, { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(data.playtime)})}h

{t("dashboard.stats.fights", {fights: data.fights})}

{#if user.perms.includes("CHECK")}

{t("dashboard.stats.checked", {checked: data.acceptedSchematics})}

{/if} {:catch error} {/await}