/** * External dependencies */ import { useState } from '@wordpress/element'; /** * Internal dependencies */ import { designWithAiStateMachineContext } from '../types'; export type businessInfoDescriptionCompleteEvent = { type: 'BUSINESS_INFO_DESCRIPTION_COMPLETE'; payload: string; }; export const BusinessInfoDescription = ( { sendEvent, context, }: { sendEvent: ( event: businessInfoDescriptionCompleteEvent ) => void; context: designWithAiStateMachineContext; } ) => { const [ businessInfoDescription, setBusinessInfoDescription ] = useState( context.businessInfoDescription.descriptionText ); return (