Download wp-calypso/client/state/ui/selectors/get-section-group.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/selectors/get-section-group.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/selectors/get-section-group.js
-
curl -L -o get-section-group.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/selectors/get-section-group.js
326 Bytes
| import { get } from 'lodash'; | |
| import getSection from './get-section'; | |
| /** | |
| * Returns the current section group name. | |
| * @param {Object} state Global state tree | |
| * @returns {?string} Current section group name | |
| */ | |
| export default function getSectionGroup( state ) { | |
| return get( getSection( state ), 'group', null ); | |
| } | |