import { Button, Gridicon } from '@automattic/components'; import { useTranslate } from 'i18n-calypso'; import { FunctionComponent } from 'react'; import { settingsPath } from 'calypso/lib/jetpack/paths'; import { useDispatch } from 'calypso/state'; import { recordTracksEvent } from 'calypso/state/analytics/actions/record'; interface Props { siteSlug: string | null; enterCredentialsEventName: string; goBackEventName: string; goBackUrl: string; } const MissingCredentials: FunctionComponent< Props > = ( { siteSlug, enterCredentialsEventName, goBackEventName, goBackUrl, } ) => { const dispatch = useDispatch(); const translate = useTranslate(); return ( <>
{ translate( 'Enter your server credentials to enable one-click restores from your backups.' ) }