import React, { PropTypes } from 'react' import Thumbnail from './Thumbnail' import URILink from './URILink' export default class RelatedArtists extends React.Component{ constructor(props){ super(props) } render(){ if (!this.props.artists ) return null return (
{ this.props.artists.map((artist, index) => { var images = artist.images; if (Array.isArray(images)){ images = images[0]; } if (artist.uri){ return ( { artist.name } ) } else { return ( { artist.name } ) } }) }
); } }