@ludiks/react
Version:
Complete React library for Ludiks gamification platform - includes SDK and ready-to-use components
40 lines (39 loc) • 906 B
TypeScript
export interface LudiksTheme {
colors?: {
primary?: string;
secondary?: string;
success?: string;
warning?: string;
background?: string;
text?: string;
};
animations?: boolean;
}
export interface BaseComponentProps {
className?: string;
colors?: Partial<LudiksTheme['colors']>;
}
export interface LeaderboardEntry {
userId: string;
fullName: string;
email?: string;
picture?: string;
totalPoints: number;
rank: number;
currentStreak: number;
longestStreak: number;
}
export interface UserStreakData {
currentStreak: number;
longestStreak: number;
lastLoginAt: string;
}
export interface NotificationData {
type: 'step-completed' | 'circuit-completed' | 'reward-earned';
title: string;
description?: string;
rewards?: Array<{
name: string;
}>;
points?: number;
}