UNPKG

react-achievements-zustand

Version:

This package allows users to transpose a React achievements engine over their React apps using Zustand for state management

25 lines (23 loc) 712 B
import { AchievementProvider, useAchievementContext } from './providers/AchievementProvider'; import type { AchievementMetrics, AchievementConfiguration, AchievementDetails, AchievementUnlockCondition, } from './types'; import ConfettiWrapper from './components/ConfettiWrapper'; import { useAchievementState } from './hooks/useAchievementState'; import { useAchievementStore } from './store/useAchievementStore'; export { AchievementProvider, useAchievementContext as useAchievement, ConfettiWrapper, useAchievementState, useAchievementStore, }; export type { AchievementMetrics, AchievementConfiguration, AchievementDetails, AchievementUnlockCondition, };