| 
					
				 | 
			
			
				@@ -1,19 +1,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 'use client' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import React, { FC } from 'react' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import type { FC } from 'react' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import React from 'react' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useTranslation } from 'react-i18next' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import Modal from '@/app/components/base/modal' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import FeatureItem from './feature-item' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import FeatureGroup from '../feature-group' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import MoreLikeThisIcon from '../../../base/icons/more-like-this-icon' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import FeatureItem from './feature-item' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import Modal from '@/app/components/base/modal' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import SuggestedQuestionsAfterAnswerIcon from '@/app/components/app/configuration/base/icons/suggested-questions-after-answer-icon' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-interface IConfig { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+type IConfig = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   openingStatement: boolean 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   moreLikeThis: boolean 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   suggestedQuestionsAfterAnswer: boolean 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-export interface IChooseFeatureProps { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+export type IChooseFeatureProps = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   isShow: boolean 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onClose: () => void 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   config: IConfig 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,7 +32,7 @@ const ChooseFeature: FC<IChooseFeatureProps> = ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onClose, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   isChatApp, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   config, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  onChange 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  onChange, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const { t } = useTranslation() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -43,6 +43,7 @@ const ChooseFeature: FC<IChooseFeatureProps> = ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       className='w-[400px]' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       title={t('appDebug.operation.addFeature')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       closable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      overflowVisible 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div className='pt-5 pb-10'> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         {/* Chat Feature */} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,17 +55,19 @@ const ChooseFeature: FC<IChooseFeatureProps> = ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <FeatureItem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 icon={OpeningStatementIcon} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                previewImgClassName='openingStatementPreview' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title={t('appDebug.feature.conversationOpener.title')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 description={t('appDebug.feature.conversationOpener.description')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 value={config.openingStatement} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                onChange={(value) => onChange('openingStatement', value)} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                onChange={value => onChange('openingStatement', value)} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <FeatureItem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 icon={<SuggestedQuestionsAfterAnswerIcon />} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                previewImgClassName='suggestedQuestionsAfterAnswerPreview' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title={t('appDebug.feature.suggestedQuestionsAfterAnswer.title')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 description={t('appDebug.feature.suggestedQuestionsAfterAnswer.description')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 value={config.suggestedQuestionsAfterAnswer} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                onChange={(value) => onChange('suggestedQuestionsAfterAnswer', value)} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                onChange={value => onChange('suggestedQuestionsAfterAnswer', value)} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </FeatureGroup> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -76,10 +79,11 @@ const ChooseFeature: FC<IChooseFeatureProps> = ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <FeatureItem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 icon={<MoreLikeThisIcon />} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                previewImgClassName='moreLikeThisPreview' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 title={t('appDebug.feature.moreLikeThis.title')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 description={t('appDebug.feature.moreLikeThis.description')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 value={config.moreLikeThis} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                onChange={(value) => onChange('moreLikeThis', value)} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                onChange={value => onChange('moreLikeThis', value)} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </FeatureGroup> 
			 |