import React, { useEffect } from 'react'; import TestimonialCard from '../../testimonial-card/src/index.tsx'; import './styles.scss'; import { setupScrollArrows } from '../../highlight/src/scroll-arrows.js'; import { setupDragHandling } from '../../highlight/src/drag-handling.js'; function Testimonial({ comments, featured }) { useEffect(() => { setupScrollArrows( 'testimonial-left-paddle', 'testimonial-right-paddle', 'testimonial-container' ); setupDragHandling('testimonial-container'); }, []); return (
{/*Title and subtitle*/}

Don't take our word for it...

Check out what our users think.

{/*Wrapper for horizontal scroll and scroll arrows*/}
{/*Testimonials*/} {comments.map((comment, index: number) => (
))}
{/*Featured in section*/}
{featured.map((item, index: number) => (
{item.logo_alt}

{item.featured_type}

{item.link_text}{' '}
))}
); } export default Testimonial;