import { __ } from '@wordpress/i18n'; import OnboardingHeader from '../../ReusableComponents/OnboardingHeader'; import SelectBoxWrapper from '../../ReusableComponents/SelectBoxWrapper'; import SelectBox from '../../ReusableComponents/SelectBox'; import { OnboardingHooks, BUSINESS_TYPES } from '../../../data'; const BUSINESS_RADIO_GROUP_NAME = 'business'; const StepBusiness = ( {} ) => { const { isCasualSeller, setIsCasualSeller } = OnboardingHooks.useBusiness(); const handleSellerTypeChange = ( value ) => { setIsCasualSeller( BUSINESS_TYPES.CASUAL_SELLER === value ); }; const getCurrentValue = () => { if ( isCasualSeller === null ) { return ''; } return isCasualSeller ? BUSINESS_TYPES.CASUAL_SELLER : BUSINESS_TYPES.BUSINESS; }; return (