Download wp-calypso/client/state/ui/media-modal/reducer.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/media-modal/reducer.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/media-modal/reducer.js
-
curl -L -o reducer.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/media-modal/reducer.js
320 Bytes
| import { MEDIA_MODAL_VIEW_SET } from 'calypso/state/action-types'; | |
| import { combineReducers } from 'calypso/state/utils'; | |
| export const view = ( state = null, action ) => { | |
| switch ( action.type ) { | |
| case MEDIA_MODAL_VIEW_SET: | |
| return action.view; | |
| } | |
| return state; | |
| }; | |
| export default combineReducers( { | |
| view, | |
| } ); | |