File size: 1,127 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 |
import { translate } from 'i18n-calypso';
import { TipProps } from '../components/tip';
export const tips: Record< string, TipProps > = {
'uses-responsive-images': {
title: translate( 'Did you know?' ),
content: translate(
'WordPress.com automatically optimizes images and delivers them using a Global CDN to ensure they load lightning fast.'
),
linkText: translate( 'Migrate your site' ),
link: 'https://wordpress.com/setup/site-migration?ref=performance-profiler-dashboard',
},
};
const createLoggedInTip = (): TipProps => ( {
title: translate( 'Did you know?' ),
content: translate(
'Jetpack Boost automatically optimizes images and delivers them using a Global CDN to ensure they load lightning fast.'
),
linkText: translate( 'Get Jetpack Boost' ),
link: 'https://wordpress.com/plugins/jetpack-boost',
} );
export const loggedInTips: Record< string, TipProps > = {
'uses-responsive-images': createLoggedInTip(),
'uses-long-cache-ttl': createLoggedInTip(),
'server-response-time': createLoggedInTip(),
'render-blocking-resources': createLoggedInTip(),
'unminified-css': createLoggedInTip(),
};
|