import React from 'react'; import { __, sprintf, _n } from '@wordpress/i18n'; import { Check, X } from 'lucide-react'; import { numberFormat } from '../../lib/i18n'; /** Shown once, right after the checkup, so the person landing here knows what just happened. */ export default function CheckupToast( { applied, onDismiss }: { applied: number; onDismiss: () => void } ) { return (
{ __( 'Checkup done.', 'image-sizes' ) }{ ' ' } { applied > 0 ? sprintf( /* translators: %s: number of free settings switched on. */ _n( '%s free setting is on for new uploads.', '%s free settings are on for new uploads.', applied, 'image-sizes' ), numberFormat( applied ), ) : __( 'Your free settings were already on.', 'image-sizes' ) }
); }