2018-09-10 09:55:26 -07:00
|
|
|
import React from 'react';
|
2018-11-08 11:14:52 -08:00
|
|
|
import { ProposalComments } from 'types';
|
2018-09-10 09:55:26 -07:00
|
|
|
import Comment from 'components/Comment';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
comments: ProposalComments['comments'];
|
|
|
|
}
|
|
|
|
|
2018-11-08 11:14:52 -08:00
|
|
|
const Comments = ({ comments }: Props) => (
|
2018-09-10 09:55:26 -07:00
|
|
|
<React.Fragment>
|
|
|
|
{comments.map(c => (
|
2018-11-08 11:14:52 -08:00
|
|
|
<Comment key={c.id} comment={c} />
|
2018-09-10 09:55:26 -07:00
|
|
|
))}
|
|
|
|
</React.Fragment>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default Comments;
|