import { __ } from '@wordpress/i18n';
import type { SuggestionKind } from '../../shared/api/types/links';
import type { IconName } from '../../shared/ui/Icon';

export function suggestionIcon( kind: SuggestionKind ): IconName {
	switch ( kind ) {
		case 'closest_page':
			return 'page';
		case 'site_home':
			return 'home';
		case 'archive':
			return 'archive';
	}
}

export function suggestionLabel( kind: SuggestionKind ): string {
	switch ( kind ) {
		case 'closest_page':
			return __( 'Closest page on your site', 'aiplaz-link-checkup' );
		case 'site_home':
			return __(
				'A page that still exists on that site',
				'aiplaz-link-checkup'
			);
		case 'archive':
			return __( 'Archived copy of the old page', 'aiplaz-link-checkup' );
	}
}
