/** * External dependencies */ import { useState } from '@wordpress/element'; import { TextareaControl, Button, Spinner } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { ProgressBar } from '@woocommerce/components'; /** * Internal dependencies */ import { designWithAiStateMachineContext } from '../types'; import { CloseButton } from '../components/close-button/close-button'; import { aiWizardClosedBeforeCompletionEvent } from '../events'; 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 (
{ sendEvent( { type: 'AI_WIZARD_CLOSED_BEFORE_COMPLETION', payload: { step: 'business-info-description' }, } ); } } />

{ __( 'Tell us a bit more about your business', 'woocommerce' ) }

{ setBusinessInfoDescription( businessInfo ); } } value={ businessInfoDescription } placeholder={ __( 'E.g., At Cool Cat Shades, we sell sunglasses specially designed for our stylish feline friends. Designed and developed with a cat’s comfort in mind, our range of sunglasses are fashionable accessories our furry friends can wear all day. We currently offer 50 different styles and variations of shades, with plans to add more in the near future.', 'woocommerce' ) } />

{ __( 'The more detail you provide, the better job our AI can do!', 'woocommerce' ) }

{ __( 'Try to include:', 'woocommerce' ) }

  • { __( 'What you want to sell', 'woocommerce' ) }
  • { __( 'How many products you plan on displaying', 'woocommerce' ) }
  • { __( 'What makes your business unique', 'woocommerce' ) }
  • { __( 'Who your target audience is', 'woocommerce' ) }
); };