feat: Cria o componente IcomList

This commit is contained in:
Sabrina Miranda 2023-01-10 02:05:06 -03:00
parent 5e5b51a016
commit 10d0c938ac

View File

@ -0,0 +1,21 @@
import React from "react";
interface Icon {
src: string;
alt: string;
className: string;
text?: string;
}
const IconList = ( props: Icon ) => {
const { src, alt, className, text } = props;
return (
<li>
<p>{text}</p>
<img src={src} alt={alt} className={className}/>
</li>
);
};
export { IconList };