// @flow import * as React from 'react'; import Document from 'models/Document'; import DocumentPreview from 'components/DocumentPreview'; import ArrowKeyNavigation from 'boundless-arrow-key-navigation'; type Props = { documents: Document[], showCollection?: boolean, limit?: number, }; class DocumentList extends React.Component { render() { const { limit, showCollection } = this.props; const documents = limit ? this.props.documents.splice(0, limit) : this.props.documents; return ( {documents.map(document => ( ))} ); } } export default DocumentList;