Download wp-calypso/client/state/ui/media-modal/selectors.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/media-modal/selectors.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/media-modal/selectors.js
-
curl -L -o selectors.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/media-modal/selectors.js
287 Bytes
| import 'calypso/state/ui/init'; | |
| /** | |
| * Returns the current media modal view. | |
| * @see ./constants.js (MediaView) | |
| * @param {Object} state Global state tree | |
| * @returns {any} Current media view | |
| */ | |
| export function getMediaModalView( state ) { | |
| return state.ui.mediaModal.view; | |
| } | |