@ludiks/react
Version:
Complete React library for Ludiks gamification platform - includes SDK and ready-to-use components
16 lines (15 loc) • 506 B
TypeScript
import { LeaderboardEntry } from '../types';
interface UseLeaderboardOptions {
period?: 'day' | 'week' | 'month' | 'all';
limit?: number;
autoRefresh?: boolean;
refreshInterval?: number;
}
interface UseLeaderboardReturn {
data: LeaderboardEntry[] | null;
loading: boolean;
error: string | null;
refetch: () => Promise<void>;
}
export declare function useLeaderboard({ period, limit, autoRefresh, refreshInterval, }?: UseLeaderboardOptions): UseLeaderboardReturn;
export {};