import React from 'react';
import { ListGroup, ListGroupItem, Alert } from 'react-bootstrap';
const DocumentsList = ({ documents }) => (
documents.length > 0 ?
{documents.map(({ _id, title }) => (
{ title }
))}
:
No documents yet.
);
DocumentsList.propTypes = {
documents: React.PropTypes.array,
};
export default DocumentsList;