Download wp-calypso/client/me/account-close/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account-close/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/account-close/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account-close/index.js
515 Bytes
| import { isEnabled } from '@automattic/calypso-config'; | |
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import { sidebar } from 'calypso/me/controller'; | |
| import { accountClose, accountClosed } from './controller'; | |
| export default function () { | |
| if ( isEnabled( 'me/account-close' ) ) { | |
| page( '/me/account/close', sidebar, accountClose, makeLayout, clientRender ); | |
| page( '/me/account/closed', accountClosed, makeLayout, clientRender ); | |
| } | |
| } | |