mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
27 lines
567 B
JavaScript
27 lines
567 B
JavaScript
import React from 'react'
|
||
import PropTypes from 'prop-types'
|
||
|
||
const Testimonials = ({ testimonials }) => (
|
||
<div>
|
||
{testimonials.map(testimonial => (
|
||
<article className="message">
|
||
<div className="message-body">
|
||
{testimonial.quote}
|
||
<br />
|
||
<cite> – {testimonial.author}</cite>
|
||
</div>
|
||
</article>
|
||
))}
|
||
</div>
|
||
)
|
||
|
||
Testimonials.propTypes = {
|
||
testimonials: PropTypes.arrayOf(
|
||
PropTypes.shape({
|
||
quote: PropTypes.string,
|
||
author: PropTypes.string,
|
||
})
|
||
),
|
||
}
|
||
|
||
export default Testimonials
|