import Flex from '@/components/atoms/Flex/Flex.component' import Heading from '@/components/atoms/Heading' import { ITestimonialsCard } from './TestimonialsCard.interface' import ImageWrapper from '@/components/atoms/ImageWrapper/ImageWrapper.component' import React from 'react' import { ReactSVG } from 'react-svg' import RichText from '@/components/atoms/RichText/RichText.component' import { StyledTestimonialsCard } from './TestimonialsCard.theme' const TestimonialsCard = ({ variation, description, logo, label, flag, person_img, person_name, person_role, className, style, ...props }: ITestimonialsCard) => { return ( {(person_img || logo) && (
{variation === 'team' ? ( {person_img && (
{person_img}
)}
{person_name && ( {person_name} )} {person_role && ( {person_role} )}
) : ( <> {logo && (
{logo}
)} )}
)}
{description && ( {description} )} {variation === 'customer' && ( {flag && (
{flag}
)} {label && (
{label}
)}
)}
) } export default TestimonialsCard