Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import './index.css';
- const Icons = props => {
- const iconProps = [
- {
- id: 1,
- title: 'PiggyBank1',
- text: 'Texto de teste1',
- },
- {
- id: 2,
- title: 'PiggyBank2',
- text: 'texto2'
- }
- ];
- return(
- <div className="icons-wrapper">
- <div className="icons-img">
- <img src={props.image} alt="icon"></img>
- </div>
- <div className="icons-text">
- <h2>{props.title}</h2>
- <p>
- {props.text}
- </p>
- </div>
- </div>
- );
- }
- export default Icons;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement