17 lines
376 B
TypeScript
17 lines
376 B
TypeScript
import Image from "@/components/ui/resilient-image";
|
|
|
|
import { elementIconFilter } from "@/lib/catalog/element";
|
|
|
|
export function ElementIcon({ element, url }: { element: string; url: string }) {
|
|
return (
|
|
<Image
|
|
src={url}
|
|
alt=""
|
|
width={16}
|
|
height={16}
|
|
className="shrink-0"
|
|
style={{ filter: elementIconFilter(element) }}
|
|
/>
|
|
);
|
|
}
|