import React, { useState } from 'react'; import ModalVideo from "react-modal-video"; import "react-modal-video/css/modal-video.css"; import testimonials from 'data/Digital/testimonials.json' const Testimonials = () => { const [isOpen, setOpen] = useState(false); const openVideo = (e) => { e.preventDefault(); setOpen(true); } return (
testimonials

The Trust From Clients

{ testimonials.map((testimonial, index) => (
{ Array(testimonial.stars).fill().map((_,i) => ()) }
“{ testimonial.comment }”

{ testimonial.username } / { testimonial.position }

)) }
{ typeof window !== "undefined" && ( setOpen(false)} /> ) }
) } export default Testimonials