list.js 364 B

123456789101112131415
  1. // jshint ignore:start
  2. import React from 'react';
  3. import Attachment from './attachment';
  4. export default function(props) {
  5. return (
  6. <ul className="list-unstyled editor-attachments-list">
  7. {props.attachments.map((item) => {
  8. return (
  9. <Attachment item={item} key={item.id || item.key} {...props} />
  10. );
  11. })}
  12. </ul>
  13. );
  14. };