import {
  Folder,
  Briefcase,
  FileText,
  Zap,
  BarChart3,
  Globe,
  Sparkles,
  Book,
  Heart,
  Crown,
  Music,
  Building2,
  Plane,
  type LucideIcon,
} from 'lucide-react'

const ICON_MAP: Record<string, LucideIcon> = {
  'folder': Folder,
  'briefcase': Briefcase,
  'document': FileText,
  'lightning': Zap,
  'chart': BarChart3,
  'globe': Globe,
  'sparkle': Sparkles,
  'book': Book,
  'heart': Heart,
  'crown': Crown,
  'music': Music,
  'building': Building2,
  'flight_takeoff': Plane,
}

export function getNotebookIcon(iconName: string | null | undefined): LucideIcon {
  return ICON_MAP[iconName || 'folder'] || Folder
}
