Download wp-calypso/client/jetpack-app/controller.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-app/controller.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-app/controller.tsx
-
curl -L -o controller.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-app/controller.tsx
490 Bytes
| import JetpackAppEmptyContent from './empty'; | |
| import JetpackAppPlans from './plans/main'; | |
| import type { Callback } from '@automattic/calypso-router'; | |
| export const jetpackAppPlans: Callback = ( context, next ) => { | |
| context.primary = ( | |
| <JetpackAppPlans | |
| paidDomainName={ context.query.paid_domain_name } | |
| originalUrl={ context.originalUrl } | |
| /> | |
| ); | |
| next(); | |
| }; | |
| export const pageNotFound: Callback = ( context, next ) => { | |
| context.primary = <JetpackAppEmptyContent />; | |
| next(); | |
| }; | |