Download wp-calypso/client/state/ui/selectors/is-site-section.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/selectors/is-site-section.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/selectors/is-site-section.js
-
curl -L -o is-site-section.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/selectors/is-site-section.js
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 ) ); | |
| } | |