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