import React, { useState } from 'react'; import Slider from "react-slick"; import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; import ts1 from '/public/images/about-s2.jpg' import ts2 from '/public/images/about-s2.jpg' import ts3 from '/public/images/about-s2.jpg' import thumb1 from '/public/images/testimonial/thumb1.png' import thumb2 from '/public/images/testimonial/thumb2.png' import thumb3 from '/public/images/testimonial/thumb3.png' import Image from 'next/image'; const testimonial = [ { id: '01', tImg: ts1, thumbImg: thumb1, Des: "Each family we help unite, each professional we guide, and each person we protect adds another thread to the rich tapestry.", Title: 'Robert Willum', Sub: "President of BPT", }, { id: '02', tImg: ts2, thumbImg: thumb2, Des: "Helping individuals achieve their dreams and secure their future strengthens the very fabric of our nation, one story at a time.", Title: 'Leslie Alexander', Sub: "President of TBP", }, { id: '03', tImg: ts3, thumbImg: thumb3, Des: "Every life we touch, every opportunity we create, contributes to the promise of hope and progress that defines America.", Title: 'David Joy', Sub: "President of AML", } ] const TestimonialSection = (props) => { const [nav1, setNav1] = useState(); const [nav2, setNav2] = useState(); return (

Where Every Case Contributes to America's Greatness!

setNav1(slider1)} dots={true} arrows={false}> { testimonial.map((tesmnl, tsm) => (

“{tesmnl.Des}”

{/*

{tesmnl.Title}

{tesmnl.Sub}
*/}
)) }
setNav2(slider2)} slidesToShow={1} fade={true} dots={false} arrows={false} swipeToSlide={true} focusOnSelect={true} > { testimonial.map((tesmnl, tsm) => (
)) }
{/*
*/}
); } export default TestimonialSection;