{"size": 862, "ext": "js", "max_stars_repo_path": "src/components/Home/Testimonials/Testimonial.js", "max_stars_repo_name": "radtket/taylorradtke.com", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Home/Testimonials/Testimonial.js", "max_issues_repo_name": "radtket/taylorradtke.com", "max_issues_repo_issues_event_min_datetime": "2020-01-05T02:14:05.000Z", "max_issues_repo_issues_event_max_datetime": "2020-01-05T02:14:11.000Z", "max_forks_repo_path": "src/components/Home/Testimonials/Testimonial.js", "max_forks_repo_name": "radtket/taylorradtke.com", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 21.55, "max_line_length": 65, "alphanum_fraction": 0.6403712297}
import React from "react";
import PropTypes from "prop-types";
import {
  StyledTestimonial,
  StyledAvitar,
  StyledQuote,
  StyledAuthor,
} from "../../../styles/Home/Testimonials";

const Testimonial = ({ avitar, name, company, testimonial }) => {
  return (
    <StyledTestimonial>
      <StyledAvitar>{avitar}</StyledAvitar>
      <StyledQuote>
        {testimonial.map(item => (
          <p key={item}>{item}</p>
        ))}
      </StyledQuote>
      <StyledAuthor>
        {`- ${name}`}
        <span>{company}</span>
      </StyledAuthor>
    </StyledTestimonial>
  );
};

Testimonial.propTypes = {
  avitar: PropTypes.node,
  name: PropTypes.string.isRequired,
  company: PropTypes.string,
  testimonial: PropTypes.arrayOf(PropTypes.string).isRequired,
};

Testimonial.defaultProps = {
  avitar: null,
  company: null,
};

export default Testimonial;
