react-code-dataset
/
wp-calypso
/client
/state
/document-head
/selectors
/get-document-head-unread-count.js
| import 'calypso/state/document-head/init'; | |
| /** | |
| * Returns a count reflecting unread items. | |
| * @param {Object} state Global state tree | |
| * @returns {?string} Unread count (string because it can be e.g. '40+') | |
| */ | |
| export function getDocumentHeadUnreadCount( state ) { | |
| return state.documentHead.unreadCount; | |
| } | |