import React from 'react'; import { ImageWithTextSectionProps } from './types'; import ImageWithTextCard from './card'; import { isEmpty } from 'lodash'; const ImageWithTextSection: React.FC = ({ title, hasBackground, cards }) => { const className = `image-with-text ${hasBackground ? 'image-with-text--background' : ''}`; return (

{title}

{!isEmpty(cards) && cards.map((card, index) => )}
); }; export default ImageWithTextSection;