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

export type Protection = {
	title: string;
	text: string;
};

export function protections(): Protection[] {
	return [
		{
			title: __( 'One job at a time.', 'aiplaz-link-checkup' ),
			text: __( 'Two jobs never run together.', 'aiplaz-link-checkup' ),
		},
		{
			title: __( 'Small steps.', 'aiplaz-link-checkup' ),
			text: __(
				'Links are checked and posts are changed a few at a time.',
				'aiplaz-link-checkup'
			),
		},
		{
			title: __( 'It backs off.', 'aiplaz-link-checkup' ),
			text: __(
				'Jobs pause when the database answers slowly.',
				'aiplaz-link-checkup'
			),
		},
		{
			title: __( 'Nothing is lost.', 'aiplaz-link-checkup' ),
			text: __(
				'A revision is saved before every fix, so you can undo.',
				'aiplaz-link-checkup'
			),
		},
		{
			title: __( 'Its own space.', 'aiplaz-link-checkup' ),
			text: __(
				'Two small tables, removed cleanly if you delete the plugin.',
				'aiplaz-link-checkup'
			),
		},
	];
}
