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