import React from 'react'; import PropTypes from 'prop-types'; import Page from '../PageList/Page'; import SearchResultList from './SearchResultList'; // Search.SearchResult export default class SearchResult extends React.Component { isNotSearchedYet() { return !this.props.searchResultMeta.took; } isNotFound() { return this.props.searchingKeyword !== '' && this.props.pages.length === 0; } isError() { if (this.props.searchError !== null) { return true; } return false; } render() { const excludePathString = this.props.tree; //console.log(this.props.searchError); //console.log(this.isError()); if (this.isError()) { return (