/** * External dependencies */ import { useState } from '@wordpress/element'; import { TextareaControl, Button, Spinner } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { ProgressBar } from '@woocommerce/components'; import { getAdminLink } from '@woocommerce/settings'; /** * Internal dependencies */ import { designWithAiStateMachineContext } from '../types'; import { CloseButton } from '../components/close-button/close-button'; import { SkipButton } from '../components/skip-button/skip-button'; import { aiWizardClosedBeforeCompletionEvent } from '../events'; import { isEntrepreneurFlow } from '../entrepreneur-flow'; import WordPressLogo from '~/lib/wordpress-logo'; import { trackEvent } from '~/customize-store/tracking'; export type businessInfoDescriptionCompleteEvent = { type: 'BUSINESS_INFO_DESCRIPTION_COMPLETE'; payload: string; }; export const BusinessInfoDescription = ( { sendEvent, context, }: { sendEvent: ( event: | businessInfoDescriptionCompleteEvent | aiWizardClosedBeforeCompletionEvent ) => void; context: designWithAiStateMachineContext; } ) => { const [ businessInfoDescription, setBusinessInfoDescription ] = useState( context.businessInfoDescription.descriptionText ); const [ isRequesting, setIsRequesting ] = useState( false ); return (
{ __( 'The more detail you provide, the better job our AI can do!', 'woocommerce' ) }
{ __( 'Try to include:', 'woocommerce' ) }