You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			735 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			735 B
		
	
	
	
		
			TypeScript
		
	
| import React from 'react';
 | |
| import { useSelector } from 'react-redux';
 | |
| import { getFocusedSettingsSection } from '../state/selectors/section';
 | |
| 
 | |
| import { SmartSessionConversation } from '../state/smart/SessionConversation';
 | |
| import { SmartSettingsView } from './session/settings/SessionSettings';
 | |
| 
 | |
| const FilteredSettingsView = SmartSettingsView as any;
 | |
| 
 | |
| export const SessionMainPanel = () => {
 | |
|   const focusedSettingsSection = useSelector(getFocusedSettingsSection);
 | |
|   const isSettingsView = focusedSettingsSection !== undefined;
 | |
| 
 | |
|   if (isSettingsView) {
 | |
|     return <FilteredSettingsView category={focusedSettingsSection} />;
 | |
|   }
 | |
|   return (
 | |
|     <div className="session-conversation">
 | |
|       <SmartSessionConversation />
 | |
|     </div>
 | |
|   );
 | |
| };
 |