react-code-dataset / wp-calypso /client /state /ui /selectors /get-section-group.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
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 );
}