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/testimonial/1.png' import ts2 from '/public/images/testimonial/2.png' import ts3 from '/public/images/testimonial/3.png' 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: "Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong remedies.", Title: 'Robert Willum', Sub: "President of BPT", }, { id: '01', tImg: ts2, thumbImg: thumb2, Des: "Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong remedies.", Title: 'Leslie Alexander', Sub: "President of TBP", }, { id: '01', tImg: ts3, thumbImg: thumb3, Des: "Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong remedies.", Title: 'David Joy', Sub: "President of AML", } ] const Testimonial = (props) => { const [nav1, setNav1] = useState(); const [nav2, setNav2] = useState(); return (
setNav2(slider2)} slidesToShow={1} fade={true} dots={false} arrows={false} swipeToSlide={true} focusOnSelect={true} > { testimonial.map((tesmnl, tsm) => (
)) }
setNav1(slider1)} dots={true} arrows={false}> { testimonial.map((tesmnl, tsm) => (

“{tesmnl.Des}”

{tesmnl.Title}

{tesmnl.Sub}
)) }
); } export default Testimonial;