| 
					
				 | 
			
			
				@@ -35,6 +35,7 @@ export type ISidebarProps = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onUnpin: (id: string) => void 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   controlUpdateList: number 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onDelete: (id: string) => void 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  onStartChat: (inputs: Record<string, any>) => void 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const Sidebar: FC<ISidebarProps> = ({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -59,6 +60,7 @@ const Sidebar: FC<ISidebarProps> = ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onUnpin, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   controlUpdateList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   onDelete, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  onStartChat, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const { t } = useTranslation() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const [hasPinned, setHasPinned] = useState(false) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -104,7 +106,7 @@ const Sidebar: FC<ISidebarProps> = ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       )} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div className="flex flex-shrink-0 p-4 !pb-0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <Button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          onClick={() => { onCurrentIdChange('-1') }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          onClick={() => onStartChat({})} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           className="group block w-full flex-shrink-0 !justify-start !h-9 text-primary-600 items-center text-sm"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <PencilSquareIcon className="mr-2 h-4 w-4" /> {t('share.chat.newChat')} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </Button> 
			 |