forked from M3-Academy/desafio-react-e-typescript
feat: adicionando componente
This commit is contained in:
parent
caba3da7f6
commit
12c9491e7a
16
src/components/ImageList/ImageList.tsx
Normal file
16
src/components/ImageList/ImageList.tsx
Normal 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 };
|
Loading…
Reference in New Issue
Block a user