react-trophies
Version:
Comprehensive achievement and trophy system for React apps with sound effects, notifications, theming, and visual components. Uses React, React-DOM, Sonner (toast notifications), Howler (sound effects), Zustand (state management), React-Confetti (celebrat
9 lines (8 loc) • 441 B
TypeScript
export declare const useAchievement: () => {
metrics: import("..").AchievementMetrics;
unlockedAchievements: string[];
notifications: import("..").AchievementDetails[];
config: import("../types").SerializedAchievementConfiguration;
updateMetrics: (newMetrics: import("..").AchievementMetrics | ((prevMetrics: import("..").AchievementMetrics) => import("..").AchievementMetrics)) => void;
resetStorage: () => void;
};