Download wp-calypso/client/dashboard/app/command-palette/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/command-palette/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/app/command-palette/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/command-palette/index.tsx
416 Bytes
| // @ts-expect-error The commands package is not yet typed. | |
| import { CommandMenu, useCommandLoader } from '@wordpress/commands'; | |
| import { useNavigationCommandLoader } from './commands'; | |
| function DashboardCommandPalette() { | |
| useCommandLoader( { | |
| name: 'dashboard/navigation', | |
| hook: useNavigationCommandLoader, | |
| context: 'root', | |
| } ); | |
| return <CommandMenu search="" />; | |
| } | |
| export default DashboardCommandPalette; | |