User profile results page

This commit is contained in:
Kalle
2022-08-11 23:21:15 +03:00
parent f38fafd493
commit 2a7d32b77f
12 changed files with 225 additions and 72 deletions

View File

@@ -9,3 +9,11 @@ export function discordFullName(
export function makeTitle(title: string | string[]) {
return `${Array.isArray(title) ? title.join(" | ") : title} | sendou.ink`;
}
export function placementString(placement: number) {
if (placement === 1) return "🥇";
if (placement === 2) return "🥈";
if (placement === 3) return "🥉";
return `${placement}th`;
}