Download wp-calypso/client/state/breadcrumb/actions.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/breadcrumb/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/breadcrumb/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/breadcrumb/actions.js
449 Bytes
| import { | |
| BREADCRUMB_RESET_LIST, | |
| BREADCRUMB_UPDATE_LIST, | |
| BREADCRUMB_APPEND_ITEM, | |
| } from 'calypso/state/action-types'; | |
| import 'calypso/state/breadcrumb/init'; | |
| export function resetBreadcrumbs() { | |
| return { | |
| type: BREADCRUMB_RESET_LIST, | |
| }; | |
| } | |
| export function updateBreadcrumbs( items ) { | |
| return { | |
| type: BREADCRUMB_UPDATE_LIST, | |
| items, | |
| }; | |
| } | |
| export function appendBreadcrumb( item ) { | |
| return { | |
| type: BREADCRUMB_APPEND_ITEM, | |
| item, | |
| }; | |
| } | |