import { __, sprintf } from '@wordpress/i18n'; import type { JSX } from 'react'; import { Icon } from '../../shared/ui/Icon'; type SkipHostsProps = { hosts: readonly string[]; onRemove: ( host: string ) => void; }; export function SkipHosts( { hosts, onRemove }: SkipHostsProps ): JSX.Element { return (
{ __( 'Never check these sites', 'aiplaz-link-checkup' ) } { __( 'Some sites block automatic checks. Links to them are skipped.', 'aiplaz-link-checkup' ) }
{ hosts.map( ( host ) => ( { host } ) ) } { hosts.length === 0 && ( { __( 'None', 'aiplaz-link-checkup' ) } ) }
); }