import {
  BookOpen,
  Brain,
  Briefcase,
  MessageSquare,
  Sparkles,
  Target,
  Users,
} from 'lucide-react';
import type { QuizQuestion } from '@/shared/constants/personalityCatalog';

interface PersonalityQuizIconProps {
  readonly id: string;
  readonly size?: number;
}

export function PersonalityQuizFeatureIcon({ id, size = 18 }: PersonalityQuizIconProps) {
  if (id === 'questions') return <Target size={size} />;
  if (id === 'relationships') return <Users size={size} />;
  if (id === 'language') return <MessageSquare size={size} />;
  return <Briefcase size={size} />;
}

export function PersonalityDimensionIcon({
  dimension,
  size = 14,
}: {
  readonly dimension: QuizQuestion['dimension'];
  readonly size?: number;
}) {
  if (dimension === 'EI') return <Sparkles size={size} />;
  if (dimension === 'SN') return <BookOpen size={size} />;
  if (dimension === 'TF') return <Brain size={size} />;
  return <Target size={size} />;
}
