}
renderSearch() {
- if (!this.props.stats || !Object.keys(this.props.stats).length) {
- return null;
- }
-
return (
<SearchBox
autoFocus={this.state.autoFocus}
const key = this.props.getSearchResultKey(result);
const active = this.props.values.includes(key);
const stat = this.getStat(key) || this.state.searchResultsCounts[key];
- const disabled = !active && stat === 0;
return (
<FacetItem
active={active}
- disabled={disabled}
key={key}
name={this.props.renderSearchResult(result, this.state.query)}
onClick={this.handleItemClick}