Download wp-calypso/client/me/account-close/controller.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account-close/controller.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/account-close/controller.js
-
curl -L -o controller.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account-close/controller.js
448 Bytes
| import { createElement } from 'react'; | |
| import AccountSettingsClosedComponent from 'calypso/me/account-close/closed'; | |
| import AccountSettingsCloseComponent from 'calypso/me/account-close/main'; | |
| export function accountClose( context, next ) { | |
| context.primary = createElement( AccountSettingsCloseComponent ); | |
| next(); | |
| } | |
| export function accountClosed( context, next ) { | |
| context.primary = createElement( AccountSettingsClosedComponent ); | |
| next(); | |
| } | |