import type { ComponentType } from 'react';
import {
  NotebookPen,
  Terminal,
  MapPin,
  Smartphone,
  BookOpen,
  Monitor,
  Brain,
  KeyRound,
  Wrench,
  Package,
  Cloud,
  Server,
  FlaskConical,
} from 'lucide-react';

const iconRegistry: Record<string, ComponentType<{ size?: number }>> = {
  NotebookPen,
  Terminal,
  MapPin,
  Smartphone,
  BookOpen,
  Monitor,
  Brain,
  KeyRound,
  Wrench,
  Package,
  Cloud,
  Server,
  FlaskConical,
};

export function getIcon(name: string): ComponentType<{ size?: number }> | undefined {
  return iconRegistry[name];
}
