/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { filter } from 'lodash'; import { useState } from '@wordpress/element'; import { Stepper } from '@woocommerce/components'; /** * Internal dependencies */ import { Configure } from './configure'; import { StoreLocation } from '../components/store-location'; export type ManualConfigurationProps = { isPending: boolean; onDisable: () => void; onAutomate: () => void; onManual: () => void; }; export const ManualConfiguration: React.FC< ManualConfigurationProps > = ( { isPending, onDisable, onAutomate, onManual, } ) => { const [ stepIndex, setStepIndex ] = useState( 0 ); const nextStep = () => { setStepIndex( stepIndex + 1 ); }; const stepProps = { isPending, onAutomate, onDisable, nextStep, onManual, }; const steps = [ { key: 'store_location', label: __( 'Set store location', 'woocommerce-admin' ), description: __( 'The address from which your business operates', 'woocommerce-admin' ), content: , }, { key: 'manual_configuration', label: __( 'Configure tax rates', 'woocommerce-admin' ), description: __( 'Head over to the tax rate settings screen to configure your tax rates', 'woocommerce-admin' ), content: , }, ]; const step = steps[ stepIndex ]; return ( ); };