Download wp-calypso/client/layout/global-sidebar/header.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/global-sidebar/header.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/layout/global-sidebar/header.tsx
-
curl -L -o header.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/global-sidebar/header.tsx
721 Bytes
| import { recordTracksEvent } from '@automattic/calypso-analytics'; | |
| import { useTranslate } from 'i18n-calypso'; | |
| import SkipNavigation from '../sidebar/skip-navigation'; | |
| import { GLOBAL_SIDEBAR_EVENTS } from './events'; | |
| import SidebarMenuItem from './menu-items/menu-item'; | |
| export const GlobalSidebarHeader = () => { | |
| const translate = useTranslate(); | |
| return ( | |
| <div className="sidebar__header"> | |
| <SkipNavigation | |
| skipToElementId="primary" | |
| displayText={ translate( 'Skip to main content' ) } | |
| /> | |
| <SidebarMenuItem | |
| url="/sites" | |
| className="link-logo" | |
| onClick={ () => recordTracksEvent( GLOBAL_SIDEBAR_EVENTS.ALLSITES_CLICK ) } | |
| icon={ <span className="dotcom"></span> } | |
| /> | |
| </div> | |
| ); | |
| }; | |