Files
Rasadyar_Inspection_System/src/components/SvgImage/SvgImage.tsx
2026-01-26 10:14:10 +03:30

31 lines
571 B
TypeScript

import React from "react";
interface SVGImageProps extends React.SVGProps<SVGSVGElement> {
src: React.FC<React.SVGProps<SVGSVGElement>> | any;
width?: string | number;
height?: string | number;
className?: string;
}
const SVGImage: React.FC<SVGImageProps> = ({
src: IconComponent,
width = "30px",
height = "30px",
className = "",
...props
}) => {
return (
<IconComponent
fill="currentColor"
width={width}
height={height}
className={`inline-block ${className}`}
{...props}
/>
);
};
export default SVGImage;