import { __ } from '@wordpress/i18n';

export type BrokenLinkChoice = 'remove' | 'replace' | 'ignore';

export type BrokenLinkOption = {
	choice: BrokenLinkChoice;
	title: string;
	text: string;
};

export function brokenLinkOptions(): BrokenLinkOption[] {
	return [
		{
			choice: 'remove',
			title: __(
				'Remove the links, keep the text',
				'aiplaz-link-checkup'
			),
			text: __(
				'The words stay in your posts. They just stop being links.',
				'aiplaz-link-checkup'
			),
		},
		{
			choice: 'replace',
			title: __( 'Send them all to one address', 'aiplaz-link-checkup' ),
			text: __( 'For example your home page.', 'aiplaz-link-checkup' ),
		},
		{
			choice: 'ignore',
			title: __( 'Ignore them', 'aiplaz-link-checkup' ),
			text: __(
				'Leave the posts as they are and stop reporting these links.',
				'aiplaz-link-checkup'
			),
		},
	];
}
