Download wp-calypso/client/state/selectors/get-credentials-auto-config-status.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-credentials-auto-config-status.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-credentials-auto-config-status.js
-
curl -L -o get-credentials-auto-config-status.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-credentials-auto-config-status.js
260 Bytes
| import { get } from 'lodash'; | |
| import 'calypso/state/jetpack/init'; | |
| export default function getCredentialsAutoConfigStatus( state, siteId ) { | |
| return get( state, [ 'jetpack', 'credentials', 'items', siteId, 'main' ], false ) | |
| ? 'requesting' | |
| : 'success'; | |
| } | |