react-code-dataset / wp-calypso /client /state /document-head /selectors /get-document-head-unread-count.js
react-code-dataset / wp-calypso /client /state /document-head /selectors /get-document-head-unread-count.js
Download wp-calypso/client/state/document-head/selectors/get-document-head-unread-count.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/document-head/selectors/get-document-head-unread-count.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/document-head/selectors/get-document-head-unread-count.js
-
curl -L -o get-document-head-unread-count.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/document-head/selectors/get-document-head-unread-count.js
318 Bytes
| 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; | |
| } | |