react-code-dataset / wp-calypso /client /hosting /performance /components /PerformanceReportLoading.tsx
react-code-dataset / wp-calypso /client /hosting /performance /components /PerformanceReportLoading.tsx
Download wp-calypso/client/hosting/performance/components/PerformanceReportLoading.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 763 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/components/PerformanceReportLoading.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/hosting/performance/components/PerformanceReportLoading.tsx
-
curl -L -o PerformanceReportLoading.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/hosting/performance/components/PerformanceReportLoading.tsx
763 Bytes
| import { useI18n } from '@wordpress/react-i18n'; | |
| import { PerformanceReportLoadingProgress } from 'calypso/performance-profiler/pages/loading-screen/progress'; | |
| export const PerformanceReportLoading = ( { | |
| isSavedReport, | |
| pageTitle, | |
| isLoadingPages, | |
| }: { | |
| isSavedReport: boolean; | |
| pageTitle: string; | |
| isLoadingPages?: boolean; | |
| } ) => { | |
| const { __ } = useI18n(); | |
| return ( | |
| <div className="site-performance__loader"> | |
| <PerformanceReportLoadingProgress | |
| css={ { | |
| span: { | |
| fontSize: '14px', | |
| lineHeight: '20px', | |
| }, | |
| } } | |
| isSavedReport={ isSavedReport } | |
| pageTitle={ pageTitle } | |
| isLoadingPages={ isLoadingPages } | |
| /> | |
| { ! isLoadingPages && <p>{ __( 'Testing your site may take around 30 seconds.' ) }</p> } | |
| </div> | |
| ); | |
| }; | |