/** * External dependencies */ import React from 'react'; /** * WordPress dependencies */ const { __ } = wp.i18n; export default ({ currentStep, smushData }) => { const getStepClass = (step) => { const stepClass = 'smush-wizard-bar-step'; if (!smushData.isPro) { return stepClass + ' disabled'; } if (step > currentStep) { return stepClass; } return ( stepClass + (step === currentStep ? ' current' : ' sui-tooltip done') ); }; const getStepNumber = (step) => { return currentStep > step ? ( ) : ( step ); }; const steps = [ { number: 1, title: __('Server Type', 'wp-smushit') }, { number: 2, title: __('Add Rules', 'wp-smushit') }, { number: 3, title: __('Finish Setup', 'wp-smushit') }, ]; return (
{__('Setup', 'wp-smushit')}

{__('Local WebP', 'wp-smushit')}

{!smushData.isPro && ( {__('Pro', 'wp-smushit')} )}
); };