Download wp-calypso/client/switch-site/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/switch-site/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/switch-site/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/switch-site/index.ts
258 Bytes
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import siteSwitcher from './controller'; | |
| export default function () { | |
| page( '/switch-site', siteSwitcher, makeLayout, clientRender ); | |
| } | |