Download wp-calypso/client/jetpack-cloud/sections/settings/empty-content.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 980 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/settings/empty-content.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-cloud/sections/settings/empty-content.tsx
-
curl -L -o empty-content.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/settings/empty-content.tsx
980 Bytes
| 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; | |