2017-05-19 07:43:29 +02:00
|
|
|
import Inferno from 'inferno';
|
|
|
|
import Component from 'inferno-component';
|
|
|
|
import marked from 'marked';
|
|
|
|
|
|
|
|
import idManager from '../../managers/IDManager';
|
|
|
|
|
|
|
|
import {WordDisplay} from './WordDisplay';
|
|
|
|
|
|
|
|
export class WordsList extends Component {
|
|
|
|
constructor (props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
<div className='box'>
|
|
|
|
|
2017-06-25 22:23:42 +02:00
|
|
|
{this.props.words
|
|
|
|
&& this.props.words.map(word => {
|
2017-05-19 07:43:29 +02:00
|
|
|
return (
|
|
|
|
<WordDisplay key={`word_${word.id}`}
|
|
|
|
word={word} />
|
|
|
|
);
|
|
|
|
})
|
2017-06-25 22:23:42 +02:00
|
|
|
}
|
2017-05-19 07:43:29 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|