Download wp-calypso/client/dashboard/app/primary-menu/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/primary-menu/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/app/primary-menu/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/primary-menu/index.tsx
584 Bytes
| import { __ } from '@wordpress/i18n'; | |
| import Menu from '../../components/menu'; | |
| import { useAppContext } from '../context'; | |
| function PrimaryMenu() { | |
| const { supports } = useAppContext(); | |
| return ( | |
| <Menu> | |
| { supports.overview && <Menu.Item to="/overview">{ __( 'Overview' ) }</Menu.Item> } | |
| { supports.sites && <Menu.Item to="/sites">{ __( 'Sites' ) }</Menu.Item> } | |
| { supports.domains && <Menu.Item to="/domains">{ __( 'Domains' ) }</Menu.Item> } | |
| { supports.emails && <Menu.Item to="/emails">{ __( 'Emails' ) }</Menu.Item> } | |
| </Menu> | |
| ); | |
| } | |
| export default PrimaryMenu; | |