react-code-dataset / wp-calypso /client /sites /settings /sftp-ssh /hooks /use-is-ssh-setting-supported.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
320 Bytes
import { FEATURE_SSH } from '@automattic/calypso-products';
import siteHasFeature from 'calypso/state/selectors/site-has-feature';
import { useSelectedSiteSelector } from 'calypso/state/sites/hooks';
export default function useIsSshSettingSupported() {
return useSelectedSiteSelector( siteHasFeature, FEATURE_SSH );
}