export interface Celebration { emoji: string; title: string; } const DEFAULT_CELEBRATION: Celebration = { emoji: '👏', title: 'Great Job!', }; const BY_TYPE: Record = { session_completed: { emoji: '🎉', title: 'Fast Complete!' }, task_completed: { emoji: '✅', title: 'Well Done!' }, streak_milestone: { emoji: '🔥', title: 'Streak Milestone!' }, achievement_unlocked: { emoji: '🏆', title: 'Achievement Unlocked!' }, level_up: { emoji: '⬆️', title: 'Level Up!' }, }; export function createCelebrationEngine() { return { getCelebration(type: string): Celebration { return BY_TYPE[type] ?? DEFAULT_CELEBRATION; }, }; }