Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
373 Bytes
import getSectionGroup from './get-section-group';
/**
* Returns true if the current section is a site-specific section.
* @param {Object} state Global state tree
* @returns {boolean} Whether current section is site-specific
*/
export default function isSiteSection( state ) {
return [ 'sites', 'editor', 'gutenberg' ].includes( getSectionGroup( state ) );
}