'use strict'; import React from 'react'; import { getLangText } from '../../utils/lang_utils'; let AccordionList = React.createClass({ propTypes: { className: React.PropTypes.string, children: React.PropTypes.arrayOf(React.PropTypes.element).isRequired, loadingElement: React.PropTypes.element, count: React.PropTypes.number, itemList: React.PropTypes.arrayOf(React.PropTypes.object), search: React.PropTypes.string, searchFor: React.PropTypes.func }, clearSearch() { this.props.searchFor(''); }, render() { const { search } = this.props; if(this.props.itemList && this.props.itemList.length > 0) { return (
{getLangText('We could not find any works related to you...')}
{getLangText('To register one, click')} {getLangText('here')}!
{getLangText('We could not find any works related to you...')}
{getLangText('You\'re filtering by the search keyword: \'%s\' ', search)}