// src/config/memberTierIcons.js
import { User, Star, Crown, Award, Sparkles, Medal, Trophy, Gem, Heart, Shield } from 'lucide-react';

/**
 * Member tier icon mapping
 * Maps iconKey strings from backend to Lucide React components
 */
export const MEMBER_TIER_ICONS = {
  // Primary tier icons
  sparkle: Sparkles,
  sparkles: Sparkles,
  star: Star,
  award: Award,
  crown: Crown,
  // Additional options
  medal: Medal,
  trophy: Trophy,
  gem: Gem,
  heart: Heart,
  shield: Shield,
  user: User,
};

/**
 * Get icon component by key with fallback
 */
export const getTierIcon = (iconKey) => {
  return MEMBER_TIER_ICONS[iconKey?.toLowerCase()] || MEMBER_TIER_ICONS.sparkle;
};
