Download wp-calypso/client/me/developer/controller.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/developer/controller.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/developer/controller.js
-
curl -L -o controller.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/developer/controller.js
499 Bytes
| import { useTranslate } from 'i18n-calypso'; | |
| import DocumentHead from 'calypso/components/data/document-head'; | |
| import DeveloperComponent from 'calypso/me/developer/main'; | |
| export function developer( context, next ) { | |
| const DeveloperTitle = () => { | |
| const translate = useTranslate(); | |
| return <DocumentHead title={ translate( 'Developer Features', { textOnly: true } ) } />; | |
| }; | |
| context.primary = ( | |
| <> | |
| <DeveloperTitle /> | |
| <DeveloperComponent path={ context.path } /> | |
| </> | |
| ); | |
| next(); | |
| } | |