add image svg
This commit is contained in:
8
resources/js/components/Img.tsx
Normal file
8
resources/js/components/Img.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import React, {FC} from "react";
|
||||
|
||||
const Img: FC<{src: string, alt: string, width: string}> = ({src, alt, width, ...props}) => {
|
||||
|
||||
return <img src={'/' + src} alt={alt} width={width} {...props} />
|
||||
}
|
||||
|
||||
export default Img
|
||||
Reference in New Issue
Block a user