22 lines
575 B
JavaScript
22 lines
575 B
JavaScript
|
'use strict';
|
||
|
var React = require('react');
|
||
|
var ReactBootstrap = require('react-bootstrap');
|
||
|
|
||
|
var Duplicate = React.createClass({
|
||
|
render: function () {
|
||
|
var ListGroupItem = ReactBootstrap.ListGroupItem;
|
||
|
var authors = "";
|
||
|
this.props.track.artists.forEach(function (item, index) {
|
||
|
if (index != 0) {
|
||
|
authors += ', ';
|
||
|
}
|
||
|
authors += item.name;
|
||
|
});
|
||
|
return (
|
||
|
<ListGroupItem>{this.props.track.name} - {authors}</ListGroupItem>
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = Duplicate;
|