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

15 lines
355 B
JavaScript

import React from 'react';
import FeaturedComment from './FeaturedComment';
export default ({asset: {featuredComments, ...asset}, viewComment}) => (
<div>
{featuredComments.nodes.map((comment) =>
<FeaturedComment
key={comment.id}
comment={comment}
asset={asset}
viewComment={viewComment} />
)}
</div>
);