import { useState } from 'react';
import { __ } from '@wordpress/i18n/';
import Overview from '../components/OverviewTemplate';

export default function RedirectsOverview( { moduleId } ) {
	const [ section, setSection ] = useState( 'about' );

	return (
		<Overview moduleId={ moduleId } section={ ( val ) => setSection( val ) } noIntegrate>
			{
				section === 'about' &&
				<section>
					<p>{ __( '404 errors can dampen your website’s SEO performance and user engagement alike. For larger websites, even identifying broken pages can be a time-consuming and difficult task. Luckily, URLsLab’s Redirects module is here to help.', 'urlslab' ) }</p>
					<p>{ __( 'With this module’s advanced monitoring system, you can effortlessly identify and resolve 404 errors, helping to maintain your site’s integrity and keeping it broken-link-free. You can also set up permanent or temporary redirects, ensuring your visitors always land on the correct page. All of this can be done through a simple and easy-to-use interface.', 'urlslab' ) }</p>
					<p>{ __( 'The Redirects module also contributes to your website’s SEO efforts. By proactively rectifying 404 errors, your website is more likely to perform better, both in terms of user experience and SEO rankings.', 'urlslab' ) }</p>
				</section>
			}
			{
				section === 'faq' &&
					<section>
						<h4>{ __( 'How does the Redirects module identify 404 errors on my website?', 'urlslab' ) }</h4>
						<p>{ __( 'URLsLab’s Redirects module uses an advanced monitoring system to identify 404 errors throughout your website. In the module’s dashboard, you are notified each time it finds a 404 error.', 'urlslab' ) }</p>
						<h4>{ __( 'Does the Redirects module allow me to customize its settings?', 'urlslab' ) }</h4>
						<p>{ __( 'Yes, it does. With the Redirects module’s Settings tab, you can customize its functionalities according to your website’s needs.', 'urlslab' ) }</p>
					</section>
			}
		</Overview>
	);
}
