File size: 980 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { localizeUrl } from '@automattic/i18n-utils';
import { JETPACK_PRICING_PAGE } from '@automattic/urls';
import { useTranslate } from 'i18n-calypso';
import * as React from 'react';
import EmptyContent from 'calypso/components/empty-content';
import Main from 'calypso/components/main';
import { preventWidows } from 'calypso/lib/formatting';

const NoSitePurchasesMessage: React.FC = () => {
	const translate = useTranslate();

	return (
		<Main className="empty-content">
			<EmptyContent
				action={
					<a
						className="empty-content__action button is-primary"
						href={ localizeUrl( JETPACK_PRICING_PAGE ) }
					>
						{ translate( 'Upgrade for quick restores' ) }
					</a>
				}
				title={ preventWidows( translate( 'Upgrade for quick restores' ) ) }
				line={ preventWidows(
					translate(
						'Server credentials are used to restore your site and fix any vulnerabilities'
					)
				) }
			/>
		</Main>
	);
};

export default NoSitePurchasesMessage;