import React, { PropTypes } from 'react' import FontAwesome from 'react-fontawesome' import { Link } from 'react-router' import ListItem from './ListItem' import ItemSource from './ItemSource' export default class PlaylistListItem extends React.Component{ constructor(props) { super(props); } renderOwner(){ if( !this.props.item.owner ) return null; return ( { this.props.item.owner.id } ); } render(){ if( !this.props.item ) return null return ( {this.props.item.name} { this.renderOwner() } ); } }