import React from 'react'; import Page from '../PageList/Page'; import SearchResultList from './SearchResultList'; // Search.SearchResult export default class SearchResult extends React.Component { render() { const listView = this.props.pages.map((page) => { const pageId = "#" + page._id; return (
); }); /* UI あとで考える Found: {this.props.searchResultMeta.total} pages with "{this.props.searchingKeyword}" */ return (
Found {this.props.searchResultMeta.total} pages with "{this.props.searchingKeyword}"
); } } SearchResult.propTypes = { searchedPages: React.PropTypes.array.isRequired, searchingKeyword: React.PropTypes.string.isRequired, }; SearchResult.defaultProps = { searchedPages: [], searchingKeyword: '', searchResultMeta: {}, };