guild_front/src/components/Outstaffing/OutstaffingBlock.js

20 lines
481 B
JavaScript
Raw Normal View History

2021-06-01 15:25:01 +03:00
import style from './Outstaffing.module.css';
const OutstaffingBlock = ({ text, image, data, onTest }) => {
return (
<div className={style.outstaffing__box}>
<img src={image} alt="img" />
<p>{text}</p>
<ul className={style.items}>
{data.map((item, index) => (
<li key={index.toString()} onClick={() => onTest(index)}>
{index} {item}
</li>
))}
</ul>
</div>
);
};
export default OutstaffingBlock;