import React from 'react'; import { __ } from '@wordpress/i18n'; import { X } from 'lucide-react'; /** * The one card that offers the checkup: an invitation for a site that has not taken it, or a way * back in for one that started and stopped. Never a redirect and never a modal, and it goes away for good. */ export default function CheckupCard( { unfinished, onDismiss }: { unfinished: boolean; onDismiss: () => void } ) { return (
{ unfinished ? __( 'In progress', 'image-sizes' ) : __( 'New', 'image-sizes' ) }

{ unfinished ? __( 'You started the checkup but did not finish it. It takes about a minute.', 'image-sizes' ) : __( 'Your images now get a health grade. Take the 60-second checkup to see yours.', 'image-sizes' ) }

{ unfinished ? __( 'Finish checkup', 'image-sizes' ) : __( 'Check my site', 'image-sizes' ) }
); }