mirror of
https://github.com/wassname/talk.git
synced 2026-08-19 12:40:16 +08:00
17 lines
419 B
JavaScript
17 lines
419 B
JavaScript
import React from 'react';
|
|
import FeaturedComment from '../containers/FeaturedComment';
|
|
|
|
export default ({root, data, asset: {featuredComments, ...asset}, viewComment}) => (
|
|
<div>
|
|
{featuredComments.nodes.map((comment) =>
|
|
<FeaturedComment
|
|
key={comment.id}
|
|
root={root}
|
|
data={data}
|
|
comment={comment}
|
|
asset={asset}
|
|
viewComment={viewComment} />
|
|
)}
|
|
</div>
|
|
);
|