AutorÃa | Ultima modificación | Ver Log |
import React from 'react';
import { List } from '..';
import { CommentItem } from './comment-item';
export function CommentsList({ comments = [], onDelete, onReport }) {
return (
<List
items={comments}
renderItem={(comment) => (
<CommentItem
comment={comment}
onDelete={() => onDelete(comment.link_delete)}
onReport={() => onReport(comment.link_abuse_report)}
/>
)}
emptyMessage='No hay comentarios para mostrar'
keyExtractor='uuid'
/>
);
}