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.
session-desktop/ts/components/SessionMainPanel.tsx

27 lines
670 B
TypeScript

import React from 'react';
import { SmartSessionConversation } from '../state/smart/SessionConversation';
import {
SessionSettingCategory,
SmartSettingsView,
} from './session/settings/SessionSettings';
const FilteredSettingsView = SmartSettingsView as any;
type Props = {
focusedSettingsSection?: SessionSettingCategory;
};
export const SessionMainPanel = (props: Props) => {
const isSettingsView = props.focusedSettingsSection !== undefined;
if (isSettingsView) {
return <FilteredSettingsView category={props.focusedSettingsSection} />;
}
return (
<div className="session-conversation">
<SmartSessionConversation />
</div>
);
};