import React from 'react'; import style from './Outstaffing.module.css'; const OutstaffingBlock = ({ data = {}, onClick, onTabBarClick, selected }) => { const { img, text, tags, name, header } = data; let clas; if (name === 'Backend') { clas = style.back; } else if (name === 'Design') { clas = style.des; } else if (name === 'Frontend') { clas = style.front; } return (
onTabBarClick(name)} >

{header}

img

{text}

{tags && ( )}
); }; export default OutstaffingBlock;