import React from 'react';
import { PropTypes } from 'prop-types';
import './style.scss';
const WordCloud = props => (
// eslint-disable-next-line
{ props.words.title }
{ props.words.cloud.map(word => (
{ word.word }
))
}
);
WordCloud.propTypes = {
index: PropTypes.number.isRequired,
words: PropTypes.shape({
title: PropTypes.string,
cloud: PropTypes.array,
}).isRequired,
openWordCloudModal: PropTypes.func.isRequired,
};
export default WordCloud;