import React from "react"; import FileTile from "component/fileTile"; import ChannelTile from "component/channelTile"; import Link from "component/link"; import { BusyMessage } from "component/common.js"; import lbryuri from "lbryuri"; const SearchNoResults = props => { const { query } = props; return (
{(__("No one has checked anything in for %s yet."), query)} {" "}
); }; class FileListSearch extends React.PureComponent { componentWillMount() { this.doSearch(this.props); } componentWillReceiveProps(props) { if (props.query != this.props.query) { this.doSearch(props); } } doSearch(props) { this.props.search(props.query); } render() { const { isSearching, uris, query } = this.props; return (
{isSearching && !uris && } {isSearching && uris && } {uris && uris.length ? uris.map( uri => lbryuri.parse(uri).name[0] === "@" ? : ) : !isSearching && }
); } } export default FileListSearch;