react-code-dataset / wp-calypso /client /state /comments /selectors /get-post-comment-items.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
365 Bytes
import 'calypso/state/comments/init';
/**
* Gets comment items for post
* @param {Object} state redux state
* @param {number} siteId site identification
* @param {number} postId site identification
* @returns {Array} comment items
*/
export function getPostCommentItems( state, siteId, postId ) {
return state.comments.items[ `${ siteId }-${ postId }` ];
}