File size: 365 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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 }` ];
}