File size: 895 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import { map, compact } from 'lodash';
import { commentsTree } from 'calypso/blocks/conversations/docs/fixtures';
import { ConversationCommentList } from 'calypso/blocks/conversations/list';
import { posts } from 'calypso/blocks/reader-post-card/docs/fixtures';
const noop = () => {};
const ConversationCommentListExample = () => {
const post = posts[ 0 ];
return (
<div className="design-assets__group">
<ConversationCommentList
commentsFetchingStatus={ {} }
commentsTree={ commentsTree }
blogId={ 123 }
postId={ 12 }
commentIds={ [ 1, 2, 3 ] }
sortedComments={ compact( map( commentsTree, 'data' ) ) }
post={ post }
enableCaterpillar={ false }
shouldRequestComments={ false }
setActiveReply={ noop }
/>
</div>
);
};
ConversationCommentListExample.displayName = 'ConversationCommentList';
export default ConversationCommentListExample;
|