Download wp-calypso/client/state/admin-menu/actions/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/admin-menu/actions/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/admin-menu/actions/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/admin-menu/actions/index.js
449 Bytes
| import 'calypso/state/admin-menu/init'; | |
| import 'calypso/state/data-layer/wpcom/sites/admin-menu'; | |
| import { ADMIN_MENU_REQUEST, ADMIN_MENU_RECEIVE } from 'calypso/state/action-types'; | |
| export const requestAdminMenu = function requestAdminMenu( siteId ) { | |
| return { | |
| type: ADMIN_MENU_REQUEST, | |
| siteId, | |
| }; | |
| }; | |
| export const receiveAdminMenu = function receiveAdminMenu( siteId, menu ) { | |
| return { | |
| type: ADMIN_MENU_RECEIVE, | |
| siteId, | |
| menu, | |
| }; | |
| }; | |