Download wp-calypso/client/sites/overview/controller.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/overview/controller.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/sites/overview/controller.tsx
-
curl -L -o controller.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/overview/controller.tsx
491 Bytes
| import PageViewTracker from 'calypso/lib/analytics/page-view-tracker'; | |
| import { getRouteFromContext } from 'calypso/utils'; | |
| import HostingOverview from './components/hosting-overview'; | |
| import type { Context as PageJSContext } from '@automattic/calypso-router'; | |
| export function overview( context: PageJSContext, next: () => void ) { | |
| context.primary = ( | |
| <> | |
| <PageViewTracker title="Sites > Overview" path={ getRouteFromContext( context ) } /> | |
| <HostingOverview /> | |
| </> | |
| ); | |
| next(); | |
| } | |