Download wp-calypso/client/state/ui/layout-focus/selectors.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/layout-focus/selectors.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/layout-focus/selectors.js
-
curl -L -o selectors.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/layout-focus/selectors.js
268 Bytes
| import 'calypso/state/ui/init'; | |
| /** | |
| * Returns the current layout focus area | |
| * @param {Object} state Global state tree | |
| * @returns {?string} The current layout focus area | |
| */ | |
| export function getCurrentLayoutFocus( state ) { | |
| return state.ui.layoutFocus.current; | |
| } | |