Download wp-calypso/apps/blaze-dashboard/src/components/generic-header/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/blaze-dashboard/src/components/generic-header/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/blaze-dashboard/src/components/generic-header/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/blaze-dashboard/src/components/generic-header/index.jsx
403 Bytes
| import config from '@automattic/calypso-config'; | |
| import BlazePluginHeader from './blaze-plugin-header'; | |
| import JetpackBlazeHeader from './jetpack-blaze-header'; | |
| const GenericHeader = ( props ) => { | |
| const isBlazePlugin = config.isEnabled( 'is_running_in_blaze_plugin' ); | |
| return isBlazePlugin ? <BlazePluginHeader { ...props } /> : <JetpackBlazeHeader { ...props } />; | |
| }; | |
| export default GenericHeader; | |