react-code-dataset
/
wp-calypso
/client
/sites
/settings
/sftp-ssh
/hooks
/use-sftp-ssh-setting-title.ts
| 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' ); | |
| } | |