Download wp-calypso/apps/notifications/src/panel/state/suggestions/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/state/suggestions/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/notifications/src/panel/state/suggestions/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/state/suggestions/actions.js
322 Bytes
| import * as types from '../action-types'; | |
| export const fetchSuggestions = ( siteId ) => ( { | |
| type: types.SUGGESTIONS_FETCH, | |
| siteId, | |
| } ); | |
| export const storeSuggestions = ( siteId, suggestions ) => ( { | |
| type: types.SUGGESTIONS_STORE, | |
| siteId, | |
| suggestions, | |
| } ); | |
| export default { | |
| fetchSuggestions, | |
| storeSuggestions, | |
| }; | |