/** * External dependencies */ import React from 'react'; /** * WordPress dependencies */ const { __, sprintf } = wp.i18n; export default ({ currentStep, serverType, rulesMethod, setRulesMethod, setServerType, rulesError, smushData, makeRequest, }) => { const stepsHeading = { 1: { title: __('Choose Server Type', 'wp-smushit'), description: __( 'Choose your server type. If you don’t know this, please contact your hosting provider.', 'wp-smushit' ), }, 2: { title: __('Add Rules', 'wp-smushit'), description: 'apache' === serverType ? __( 'Smush can automatically apply WebP conversion rules for Apache servers by writing to your .htaccess file. Alternatively, switch to Manual to apply these rules yourself.', 'wp-smushit' ) : __( 'The following configurations are for NGINX servers. If you do not have access to your NGINX config files you will need to contact your hosting provider to make these changes.', 'wp-smushit' ), }, 3: { title: __('Finish Setup', 'wp-smushit'), description: __( 'The rules have been applied successfully.', 'wp-smushit' ), }, }; const getTopNotice = () => { if (1 === currentStep && smushData.isS3Enabled) { return (
{__( 'We noticed the Amazon S3 Integration is enabled. Offloaded images will not be served in WebP format, but Smush will create local WebP copies of all images. If this is undesirable, you can quit the setup.', 'wp-smushit' )}