Download wp-calypso/client/hosting/performance/components/ReportUnavailable.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/components/ReportUnavailable.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/hosting/performance/components/ReportUnavailable.tsx
-
curl -L -o ReportUnavailable.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/components/ReportUnavailable.tsx
808 Bytes
| import { NoticeBanner } from '@automattic/components'; | |
| import { Button } from '@wordpress/components'; | |
| import { useTranslate } from 'i18n-calypso'; | |
| export const ReportUnavailable = ( { | |
| isLaunching, | |
| onLaunchSiteClick, | |
| ctaText, | |
| }: { | |
| isLaunching: boolean; | |
| onLaunchSiteClick(): void; | |
| ctaText: string; | |
| } ) => { | |
| const translate = useTranslate(); | |
| return ( | |
| <NoticeBanner | |
| level="info" | |
| title={ translate( 'Launch your site to start measuring performance' ) } | |
| hideCloseButton | |
| actions={ [ | |
| <Button | |
| disabled={ isLaunching } | |
| isBusy={ isLaunching } | |
| key="launch-site" | |
| variant="primary" | |
| onClick={ onLaunchSiteClick } | |
| > | |
| { ctaText } | |
| </Button>, | |
| ] } | |
| > | |
| { translate( 'Performance statistics are only available for public sites.' ) } | |
| </NoticeBanner> | |
| ); | |
| }; | |