All checks were successful
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 39s
CI / test-python-voice (push) Successful in 37s
CI / test-bqas (push) Successful in 37s
Neue statische Website fuer Kinder (6-12 Jahre) mit 8 Holzprojekten, SVG-Illustrationen, Sicherheitshinweisen und kindgerechtem Design. Next.js 15 + Tailwind + Framer Motion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
442 B
TypeScript
15 lines
442 B
TypeScript
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" />
|
|
}
|