File size: 373 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 | 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 ) );
}
|