import React, { Component } from 'react'; import { TorrentLine } from './recent-torrents' import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; export default class SearchResults extends Component { render() { return ( { this.props.results && this.props.results.length > 0 ? Search results : null } { this.props.results && this.props.results.length > 0 ? this.props.results.map((torrent, index) =>{ return( ); }) : null } ); } }