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