Download wp-calypso/client/state/ui/masterbar-visibility/reducer.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 190 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/masterbar-visibility/reducer.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/masterbar-visibility/reducer.js
-
curl -L -o reducer.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/masterbar-visibility/reducer.js
190 Bytes
| import { MASTERBAR_TOGGLE_VISIBILITY } from 'calypso/state/action-types'; | |
| export default ( state = true, { type, isVisible } ) => | |
| type === MASTERBAR_TOGGLE_VISIBILITY ? isVisible : state; | |