Files
talk/plugins/talk-plugin-featured-comments/client/components/TabPane.js
T

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>
);