Proyectos de Subversion LeadersLinked - SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3505 stevensc 1
import React from 'react';
2
 
3
import { List } from '..';
4
import { CommentItem } from './comment-item';
5
 
6
export function CommentsList({ comments = [], onDelete, onReport }) {
7
  return (
8
    <List
9
      items={comments}
10
      renderItem={(comment) => (
11
        <CommentItem
12
          comment={comment}
13
          onDelete={() => onDelete(comment.link_delete)}
14
          onReport={() => onReport(comment.link_abuse_report)}
15
        />
16
      )}
17
      emptyMessage='No hay comentarios para mostrar'
18
      keyExtractor='uuid'
19
    />
20
  );
21
}