import React from 'react'; import { ImageWithTextCardProps } from './types'; const ImageWithTextCard: React.FC = ({ noCard, fullImage, reverse, imageSrc, imageAlt, title, section1Title, section1Text, section2Title, section2Text, buttonText, onButtonClick }) => { let cardClassName = 'image-with-text__card'; if (noCard) { cardClassName += ' image-with-text__card--no-card'; } if (fullImage) { cardClassName += ' image-with-text__card--full-img'; } if (reverse) { cardClassName += ' image-with-text__card--reverse'; } return (
{imageAlt}

{title}

{section1Title}

{section1Text}

{section2Title}

{section2Text}

); }; export default ImageWithTextCard;