react-code-dataset / wp-calypso /apps /notifications /src /panel /state /selectors /get-is-note-hidden.js
react-code-dataset / wp-calypso /apps /notifications /src /panel /state /selectors /get-is-note-hidden.js
Download wp-calypso/apps/notifications/src/panel/state/selectors/get-is-note-hidden.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/state/selectors/get-is-note-hidden.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/notifications/src/panel/state/selectors/get-is-note-hidden.js
-
curl -L -o get-is-note-hidden.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/state/selectors/get-is-note-hidden.js
223 Bytes
| import getNotes from './get-notes'; | |
| export const getIsNoteHidden = ( notesState, noteId ) => | |
| true === notesState.hiddenNoteIds[ noteId ]; | |
| export default ( state, noteId ) => getIsNoteHidden( getNotes( state ), noteId ); | |