react-code-dataset / wp-calypso /client /sites /settings /sftp-ssh /hooks /use-sftp-ssh-setting-title.ts
react-code-dataset / wp-calypso /client /sites /settings /sftp-ssh /hooks /use-sftp-ssh-setting-title.ts
Download wp-calypso/client/sites/settings/sftp-ssh/hooks/use-sftp-ssh-setting-title.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/settings/sftp-ssh/hooks/use-sftp-ssh-setting-title.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/sites/settings/sftp-ssh/hooks/use-sftp-ssh-setting-title.ts
-
curl -L -o use-sftp-ssh-setting-title.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/settings/sftp-ssh/hooks/use-sftp-ssh-setting-title.ts
330 Bytes
| import { useTranslate } from 'i18n-calypso'; | |
| import useIsSshSettingSupported from './use-is-ssh-setting-supported'; | |
| export default function useSftpSshSettingTitle() { | |
| const translate = useTranslate(); | |
| const isSshSupported = useIsSshSettingSupported(); | |
| return isSshSupported ? translate( 'SFTP/SSH' ) : translate( 'SFTP' ); | |
| } | |