Download wp-calypso/client/state/selectors/get-atomic-hosting-ssh-access.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-ssh-access.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-atomic-hosting-ssh-access.js
-
curl -L -o get-atomic-hosting-ssh-access.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-ssh-access.js
371 Bytes
| import 'calypso/state/hosting/init'; | |
| /** | |
| * Returns the SSH access status for given site. | |
| * @param {Object} state Global state tree | |
| * @param {number|null} siteId The ID of the site we're querying | |
| * @returns {string} SSH access status | |
| */ | |
| export function getAtomicHostingSshAccess( state, siteId ) { | |
| return state.atomicHosting?.[ siteId ]?.sshAccess ?? null; | |
| } | |