feat(leaderboard): add leaderboard functionaltiy

This commit is contained in:
shafin-r
2026-02-07 18:58:50 +06:00
parent 02419678b7
commit c9db96f97f
5 changed files with 221 additions and 60 deletions

13
src/types/leaderboard.ts Normal file
View File

@ -0,0 +1,13 @@
export type LeaderboardEntry = {
rank: number;
user_id: string;
name: string;
avatar_url: string;
total_xp: number;
current_level: number;
};
export interface Leaderboard {
top_users: LeaderboardEntry[];
user_rank: LeaderboardEntry;
}