20
src/components/PixelIcon.tsx
Normal file
20
src/components/PixelIcon.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
|
||||
interface PixelIconProps {
|
||||
src: string;
|
||||
alt?: string;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export function PixelIcon({ src, alt = '', className = '', style }: PixelIconProps) {
|
||||
return (
|
||||
<img
|
||||
src={src}
|
||||
alt={alt}
|
||||
draggable={false}
|
||||
className={`shrink-0 object-contain ${className}`.trim()}
|
||||
style={{ imageRendering: 'pixelated', ...style }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user