import clsx from 'clsx'; import { TestimonialItem } from '@/components/landing/testimonial/LandingTestimonial'; import { LandingTestimonial } from '@/components/landing/testimonial/LandingTestimonial'; /** * Use this component to display a grid of testimonials. * This component accepts a title, description and a list of testimonials. * They will be placed in a column layout on small screens, then a 2-column layout and finally a 3-column layout on large screens. * * Each testimonial can be featured or not. The featured testimonial will stand out with bigger & bolder text. */ export const LandingTestimonialGrid = ({ className, containerClassName, title, titleComponent, description, descriptionComponent, testimonialItems, featuredTestimonial, withBackground, variant = 'primary', withBackgroundGlow = false, backgroundGlowVariant = 'primary', }: { className?: string; containerClassName?: string; title?: string | React.ReactNode; titleComponent?: React.ReactNode; description?: string | React.ReactNode; descriptionComponent?: React.ReactNode; testimonialItems: Array; featuredTestimonial?: TestimonialItem; withBackground?: boolean; variant?: 'primary' | 'secondary'; withBackgroundGlow?: boolean; backgroundGlowVariant?: 'primary' | 'secondary'; }) => { return (
{title ? (

{title}

) : ( titleComponent )} {description ? (

{description}

) : ( descriptionComponent )}
{withBackgroundGlow ? ( <>
); };