react-code-dataset / wp-calypso /client /sites /settings /sftp-ssh /hooks /use-sftp-ssh-setting-title.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
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' );
}