guild_front/src/components/Outstaffing/OutstaffingBlock.js

24 lines
566 B
JavaScript
Raw Normal View History

2021-06-02 14:04:26 +03:00
import React from 'react';
2021-06-01 15:25:01 +03:00
import style from './Outstaffing.module.css';
2021-06-01 17:28:09 +03:00
const OutstaffingBlock = ({ text, image, data, onClick }) => {
2021-06-01 15:25:01 +03:00
return (
<div className={style.outstaffing__box}>
<img src={image} alt="img" />
<p>{text}</p>
<ul className={style.items}>
2021-06-02 14:04:26 +03:00
{data &&
data.tags &&
data.tags.length &&
data.tags.map((item) => (
<li key={item} onClick={() => onClick(item)}>
{item}
</li>
))}
2021-06-01 15:25:01 +03:00
</ul>
</div>
);
};
export default OutstaffingBlock;