feat: adicionando componente

This commit is contained in:
Ana Carolina Duarte Cavalcante 2023-01-11 15:24:19 -03:00
parent caba3da7f6
commit 12c9491e7a

View File

@ -0,0 +1,16 @@
interface iconProps {
src: string;
alt: string;
className: string;
}
const Icon = (props: iconProps) => {
const { src, alt, className } = props;
return (
<li className={className}>
<img src={src} alt={alt} />
</li>
);
};
export { Icon };