this._onSelectCategory(item)}/>
)
}
return (
this._onSelectCategory(item)}/>
{checkStatus}
)
};
_renderCreateNewItem = ({searchValue})=> {
const {account} = this.props
let picName = ''
if (account) {
picName = account.usesLabels() ? 'tag' : 'folder'
}
return (
“{searchValue}” (create new)
)
};
_renderItem = (item)=> {
if (item.divider) {
return
} else if (item.newCategoryItem) {
return this._renderCreateNewItem(item)
}
const {account} = this.props
let icon;
if (account) {
icon = account.usesLabels() ? this._renderCheckbox(item) : this._renderFolderIcon(item);
} else {
return
}
return (
{icon}
{this._renderBoldedSearchResults(item)}
)
};
render() {
const {account} = this.props
let placeholder = ''
if (account) {
placeholder = account.usesLabels() ? 'Label as' : 'Move to folder'
}
const headerComponents = [
,
]
return (
)
}
}