File size: 763 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 |
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>
);
};
|