({
engine,
alt = "",
className,
...props
}: EngineIconProps)
| 8 | }; |
| 9 | |
| 10 | export function EngineIcon({ |
| 11 | engine, |
| 12 | alt = "", |
| 13 | className, |
| 14 | ...props |
| 15 | }: EngineIconProps) { |
| 16 | const src = getEngineIconSrc(engine); |
| 17 | if (!src) { |
| 18 | return null; |
| 19 | } |
| 20 | |
| 21 | return ( |
| 22 | <img |
| 23 | src={src} |
| 24 | alt={alt} |
| 25 | className={cn("shrink-0 object-contain", className)} |
| 26 | {...props} |
| 27 | /> |
| 28 | ); |
| 29 | } |
| 30 | |
| 31 | export function getEngineIconSrc(engine: Engine) { |
| 32 | return EngineIconPath[engine]; |
nothing calls this directly
no test coverage detected