Download wp-calypso/client/dashboard/me/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/me/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/me/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/me/index.tsx
745 Bytes
| import { Outlet } from '@tanstack/react-router'; | |
| import { __experimentalHStack as HStack } from '@wordpress/components'; | |
| import { useViewportMatch } from '@wordpress/compose'; | |
| import { __ } from '@wordpress/i18n'; | |
| import HeaderBar from '../components/header-bar'; | |
| import MenuDivider from '../components/menu-divider'; | |
| import MeMenu from './me-menu'; | |
| function Me() { | |
| const isDesktop = useViewportMatch( 'medium' ); | |
| return ( | |
| <> | |
| <HeaderBar> | |
| <HStack justify={ isDesktop ? 'flex-start' : 'space-between' } spacing={ 4 }> | |
| <HeaderBar.Title> | |
| <span>{ __( 'Account' ) }</span> | |
| </HeaderBar.Title> | |
| { isDesktop && <MenuDivider /> } | |
| <MeMenu /> | |
| </HStack> | |
| </HeaderBar> | |
| <Outlet /> | |
| </> | |
| ); | |
| } | |
| export default Me; | |