Download wp-calypso/client/a8c-for-agencies/sections/overview/controller.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/a8c-for-agencies/sections/overview/controller.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/a8c-for-agencies/sections/overview/controller.tsx
-
curl -L -o controller.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/a8c-for-agencies/sections/overview/controller.tsx
498 Bytes
| import { type Callback } from '@automattic/calypso-router'; | |
| import PageViewTracker from 'calypso/a8c-for-agencies/components/a4a-page-view-tracker'; | |
| import MainSidebar from '../../components/sidebar-menu/main'; | |
| import Overview from './overview'; | |
| export const overviewContext: Callback = ( context, next ) => { | |
| context.secondary = <MainSidebar path={ context.path } />; | |
| context.primary = ( | |
| <> | |
| <PageViewTracker title="Overview" path={ context.path } /> | |
| <Overview /> | |
| </> | |
| ); | |
| next(); | |
| }; | |