import { Hammer, Scissors, Ruler, Paintbrush, Wrench } from 'lucide-react'

const iconMap: Record<string, React.ElementType> = {
  hammer: Hammer,
  schnitzmesser: Scissors,
  lineal: Ruler,
  pinsel: Paintbrush,
}

export function ToolIcon({ name }: { name: string }) {
  const key = name.toLowerCase()
  const Icon = Object.entries(iconMap).find(([k]) => key.includes(k))?.[1] || Wrench
  return <Icon className="w-5 h-5 text-primary" />
}
