Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import React from 'react';
  2. import './index.css';
  3.  
  4. const Icons = props => {
  5. const iconProps = [
  6. {
  7. id: 1,
  8. title: 'PiggyBank1',
  9. text: 'Texto de teste1',
  10. },
  11. {
  12. id: 2,
  13. title: 'PiggyBank2',
  14. text: 'texto2'
  15. }
  16. ];
  17.  
  18. return(
  19. <div className="icons-wrapper">
  20. <div className="icons-img">
  21. <img src={props.image} alt="icon"></img>
  22. </div>
  23. <div className="icons-text">
  24. <h2>{props.title}</h2>
  25. <p>
  26. {props.text}
  27. </p>
  28. </div>
  29. </div>
  30. );
  31. }
  32.  
  33. export default Icons;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement