/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { Button, Card, CardBody, __experimentalHeading as Heading, __experimentalText as WCText, __experimentalSpacer as Spacer, } from '@wordpress/components'; function GoogleFontsConfirmDialog() { const handleConfirm = (): void => { window.localStorage.setItem( 'wp-font-library-google-fonts-permission', 'true' ); window.dispatchEvent( new Event( 'storage' ) ); }; return (
{ __( 'Connect to Google Fonts' ) } { __( 'To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.' ) } { __( 'You can alternatively upload files directly on the Upload tab.' ) }
); } export default GoogleFontsConfirmDialog;