mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 17:29:06 +08:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
import React from 'react';
|
|
import FeaturedComment from './FeaturedComment';
|
|
|
|
export default ({asset: {featuredComments, ...asset}, setActiveTab}) => (
|
|
<div>
|
|
{featuredComments.nodes.map((comment) =>
|
|
<FeaturedComment
|
|
key={comment.id}
|
|
comment={comment}
|
|
asset={asset}
|
|
setActiveTab={setActiveTab} />
|
|
)}
|
|
</div>
|
|
);
|