import { __, sprintf } from '@wordpress/i18n'; import type { JSX } from 'react'; import type { FixAction } from '../../shared/api/types/fixes'; import { Button } from '../../shared/ui/Button'; import { Icon } from '../../shared/ui/Icon'; import type { FixPlan, PrimaryFix } from './fixPlan'; type FixPanelFootProps = { plan: FixPlan; primaryFix: PrimaryFix; placesText: string; isAddressValid: boolean; runningAction: FixAction | null; onRun: ( action: FixAction ) => void; }; export function FixPanelFoot( { plan, primaryFix, placesText, isAddressValid, runningAction, onRun, }: FixPanelFootProps ): JSX.Element { const isBusy = runningAction !== null; return (
{ plan.isRedirect && ( ) } { plan.needsAddress && ( ) }
{ __( 'A revision of each post is saved first. Every fix is listed in History and can be undone.', 'aiplaz-link-checkup' ) }
); }