Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
509 Bytes
import 'calypso/state/ui/init';
/**
* @typedef {Object} Section
* @property {string} name - The name of the section
* @property {string[]} paths - The URL paths of the section
* @property {string} module - The module path of the section
* @property {string} group - The group of the section
*
* Returns the current section.
* @param {Object} state Global state tree
* @returns {Section} Current section
*/
export default function getSection( state ) {
return state.ui.section || false;
}