{group.comments.map((comment, index) => {
if (comment.deleted_at) {
return (
);
}
const prefix = Math.abs(group.distancesInDays[index]) > 14 && (
0 && group.comments[index - 1]?.created_at
? parseISO(group.comments[index - 1].created_at!)
: undefined
}
/>
);
return (
<>
onLike(comment.id, !comment.liked)}
onDelete={(val: boolean) => onDelete(comment.id, val)}
onShowImageModal={onShowImageModal}
key={comment.id}
/>
>
);
})}
);
},
);
export { Comment };