import { __ } from '@wordpress/i18n'; import type { JSX } from 'react'; import { classNames } from '../../shared/lib/classNames'; import { Icon } from '../../shared/ui/Icon'; import { Spinner } from './Spinner'; import type { AddressTestState } from './addressTest'; function TestOutcomeContent( { testState, }: { testState: AddressTestState; } ): JSX.Element { switch ( testState.kind ) { case 'none': return <>; case 'checking': return ( <> { __( 'Checking this address', 'aiplaz-link-checkup' ) } ); case 'ok': case 'bad': return ( <> { testState.text } ); } } export function TestOutcome( { testState, }: { testState: AddressTestState; } ): JSX.Element { return (
); }