{"size": 1096, "ext": "js", "max_stars_repo_path": "src/components/Testimonials.js", "max_stars_repo_name": "thriveweb/editsuitenew", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Testimonials.js", "max_issues_repo_name": "thriveweb/editsuitenew", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Testimonials.js", "max_forks_repo_name": "thriveweb/editsuitenew", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8260869565, "max_line_length": 65, "alphanum_fraction": 0.5136861314}
import React from 'react'
import Swiper from 'react-id-swiper/lib/custom'
import 'react-id-swiper/src/styles/css/swiper.css'

import Image from './Image'
import './Testimonials.css'

class Testimonials extends React.Component {
  render() {
    const { testimonials } = this.props
    const params = {
      slidesPerView: 1,
      direction: 'horizontal',
      pagination: {
        el: '.swiper-pagination',
        clickable: true
      },
      autoplay: {
        delay: 5000
      }
    }

    return (
      <div className="testimonials relative">
        <Image
          src="https://theeditsuite.netlify.com/images/quote.svg"
          alt="quote"
        />
        <div className="wrap relative">
          <Swiper {...params}>
            {testimonials.map((item, index) => (
              <div key={`${item.title} + ${index}`}>
                <p>{item.content}</p>
                <h5>
                  {item.title}, {item.company}
                </h5>
              </div>
            ))}
          </Swiper>
        </div>
      </div>
    )
  }
}
export default Testimonials
